Skip to content

Commit ece8134

Browse files
committed
chore: tweak tests
1 parent c46ae3a commit ece8134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
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)