Fix invalid template tags in tests (#19400)

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
This commit is contained in:
Kirti Gautam 2025-12-03 01:21:21 +05:30 committed by GitHub
parent 7c69e83e81
commit 0d0d97d0cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 6 deletions

View File

@ -3,7 +3,7 @@ import os from 'node:os'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { describe } from 'vitest'
import { candidate, css, html, js, json, retryAssertion, test, ts, yaml } from '../utils'
import { candidate, css, html, js, json, retryAssertion, test, ts, txt, yaml } from '../utils'
const __dirname = path.dirname(fileURLToPath(import.meta.url))
@ -2591,7 +2591,7 @@ test(
}
}
`,
'input.css': css`
'input.css': txt`
.test {
color: red;
*/

View File

@ -1,6 +1,6 @@
import os from 'node:os'
import path from 'node:path'
import { candidate, css, html, js, json, test } from '../utils'
import { candidate, css, html, js, json, test, ts } from '../utils'
const STANDALONE_BINARY = (() => {
switch (os.platform()) {
@ -122,7 +122,7 @@ test(
})
})
`,
'src/plugin.ts': js`
'src/plugin.ts': ts`
import plugin from 'tailwindcss/plugin'
// Make sure all available JS APIs can be imported and used
@ -132,8 +132,7 @@ test(
import defaultTheme from 'tailwindcss/defaultTheme'
import * as pkg from 'tailwindcss/package.json'
export interface PluginOptions {
}
export interface PluginOptions {}
export default plugin(function ({ addUtilities }) {
addUtilities({