Skip to content

Commit 3d8ada8

Browse files
committed
chore: tweak tests
1 parent 29911a4 commit 3d8ada8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/vite/src/node/__tests__/build.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ describe('resolveBuildOutputs', () => {
602602
fileName: 'index.mjs',
603603
},
604604
{
605-
fileName: expect.stringMatching(/assets\/index-\w*\.css/),
605+
fileName: expect.stringMatching(/assets\/index-[-\w]*\.css/),
606606
},
607607
],
608608
})
@@ -633,7 +633,7 @@ describe('resolveBuildOutputs', () => {
633633
fileName: 'index.mjs',
634634
},
635635
{
636-
fileName: expect.stringMatching(/assets\/index-\w*\.css/),
636+
fileName: expect.stringMatching(/assets\/index-[-\w]*\.css/),
637637
},
638638
],
639639
})

packages/vite/src/node/__tests__/plugins/assetImportMetaUrl.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ async function createAssetImportMetaurlPluginTransform() {
1010
const environment = new PartialEnvironment('client', config)
1111

1212
return async (code: string) => {
13-
// @ts-expect-error transform should exist
14-
const result = await instance.transform.call(
13+
// @ts-expect-error transform.handler should exist
14+
const result = await instance.transform.handler.call(
1515
{ environment, parse: parseAst },
1616
code,
1717
'foo.ts',

0 commit comments

Comments
 (0)