MCPcopy
hub / github.com/tailwindlabs/prettier-plugin-tailwindcss / t

Function t

tests/utils.ts:23–38  ·  view source on GitHub ↗
(strings: TemplateStringsArray, ...values: string[])

Source from the content-addressed store, hash-verified

21]
22
23export function t(strings: TemplateStringsArray, ...values: string[]): TestEntry {
24 let input = ''
25 strings.forEach((string, i) => {
26 input += string + (values[i] ? testClassName : '')
27 })
28
29 let output = ''
30 strings.forEach((string, i) => {
31 let value = values[i] || ''
32 if (value === yes) value = testClassNameSorted
33 else if (value === no) value = testClassName
34 output += string + value
35 })
36
37 return [input, output, { tailwindPreserveWhitespace: true }]
38}
39
40export let pluginPath = path.resolve(__dirname, '../dist/index.mjs')
41

Callers 2

tests.tsFile · 0.85
plugins.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected