Skip to content

Commit a9b21e1

Browse files
fix: let tests complete on node 16 - 22
1 parent c0b6a8b commit a9b21e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__tests__/transformer.test.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe('CJS transformer', () => {
6969
it('should fail, if console.logs are enabled during preprocessing and there is a console.log statement in the svelte config', () => {
7070
expect(
7171
() => runTransformer('BasicComp', { preprocess: true, rootMode: 'upward', showConsoleLog: true })
72-
).toThrow(/^Unexpected token T in JSON at position 0$/)
72+
).toThrow(/^Unexpected token .*T.*/)
7373
})
7474

7575
it('should pass, if console.logs are disabled (default) during preprocessing and there is a console.log statement in the svelte config', () => {

0 commit comments

Comments
 (0)