Skip to content

Commit 3607409

Browse files
committed
test: update test and note vitejs#19627
1 parent 92b3ef0 commit 3607409

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// comment
1+
{}; // comment only on the 1st line breaks due to https://github.com/vitejs/vite/issues/19627
22
throw new Error('module error')

packages/vite/src/node/ssr/runtime/__tests__/server-source-maps.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ describe('module runner initialization', async () => {
3535
const topLevelError = await getError(() =>
3636
runner.import('/fixtures/has-error.js'),
3737
)
38-
expect(serializeStack(server, topLevelError)).toMatchInlineSnapshot(
39-
`" at <root>/fixtures/has-error.js:2:17"`,
38+
expect(serializeStack(server, topLevelError)).toBe(
39+
' at <root>/fixtures/has-error.js:2:7',
4040
)
4141

4242
const methodError = await getError(async () => {

0 commit comments

Comments
 (0)