MCPcopy
hub / github.com/tailwindlabs/tailwindcss / test

Function test

packages/tailwindcss/src/test-utils/custom-serializer.ts:10–12  ·  packages/tailwindcss/src/test-utils/custom-serializer.ts::test
(val)

Source from the content-addressed store, hash-verified

8
9export default {
10 test(val) {
11 return typeof val === class="st">'string' && val.match(HIGH_PRECISION_COLOR_FUNCTION) !== null
12 },
13 serialize(val, config, indentation, depth, refs, printer) {
14 if (typeof val !== class="st">'string') {
15 throw new Error(class="st">'This was already tested in the test() callback')

Callers 15

ui.spec.tsFile · 0.90
ui.spec.tsFile · 0.90
urls.test.tsFile · 0.50
important.test.tsFile · 0.50
index.test.tsFile · 0.50
variants.test.tsFile · 0.50
sort.test.tsFile · 0.50
prefix.test.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected