Skip to content

Commit e18642a

Browse files
committed
wip
1 parent 6f94fc2 commit e18642a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

integrations/cli/index.test.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,10 +2104,6 @@ test(
21042104
},
21052105
)
21062106

2107-
function withBOM(text: string): string {
2108-
return '\uFEFF' + text
2109-
}
2110-
21112107
test(
21122108
'CSS parse errors should include filename and line number',
21132109
{
@@ -2120,8 +2116,7 @@ test(
21202116
}
21212117
}
21222118
`,
2123-
'broken.css': css`
2124-
/* Test file to reproduce the CSS parsing error */
2119+
'input.css': css`
21252120
.test {
21262121
color: red;
21272122
*/
@@ -2130,8 +2125,12 @@ test(
21302125
},
21312126
},
21322127
async ({ exec, expect }) => {
2133-
await expect(exec('pnpm tailwindcss --input broken.css --output dist/out.css')).rejects.toThrow(
2134-
/Invalid declaration.*at.*broken\.css:4:/,
2128+
await expect(exec('pnpm tailwindcss --input input.css --output dist/out.css')).rejects.toThrow(
2129+
/CssSyntaxError: .*input.css: 3:2: Invalid declaration: `\*\/`/,
21352130
)
21362131
},
21372132
)
2133+
2134+
function withBOM(text: string): string {
2135+
return '\uFEFF' + text
2136+
}

0 commit comments

Comments
 (0)