From e18642a61626d850027acc51008fd636b75df07c Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Mon, 10 Nov 2025 11:21:32 -0500 Subject: [PATCH] wip --- integrations/cli/index.test.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/integrations/cli/index.test.ts b/integrations/cli/index.test.ts index adce6e71b..8705e81e7 100644 --- a/integrations/cli/index.test.ts +++ b/integrations/cli/index.test.ts @@ -2104,10 +2104,6 @@ test( }, ) -function withBOM(text: string): string { - return '\uFEFF' + text -} - test( 'CSS parse errors should include filename and line number', { @@ -2120,8 +2116,7 @@ test( } } `, - 'broken.css': css` - /* Test file to reproduce the CSS parsing error */ + 'input.css': css` .test { color: red; */ @@ -2130,8 +2125,12 @@ test( }, }, async ({ exec, expect }) => { - await expect(exec('pnpm tailwindcss --input broken.css --output dist/out.css')).rejects.toThrow( - /Invalid declaration.*at.*broken\.css:4:/, + await expect(exec('pnpm tailwindcss --input input.css --output dist/out.css')).rejects.toThrow( + /CssSyntaxError: .*input.css: 3:2: Invalid declaration: `\*\/`/, ) }, ) + +function withBOM(text: string): string { + return '\uFEFF' + text +}