Skip to content

Commit

Permalink
chore: tweak tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Nov 6, 2024
1 parent 29911a4 commit 3d8ada8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/__tests__/build.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ describe('resolveBuildOutputs', () => {
fileName: 'index.mjs',
},
{
fileName: expect.stringMatching(/assets\/index-\w*\.css/),
fileName: expect.stringMatching(/assets\/index-[-\w]*\.css/),
},
],
})
Expand Down Expand Up @@ -633,7 +633,7 @@ describe('resolveBuildOutputs', () => {
fileName: 'index.mjs',
},
{
fileName: expect.stringMatching(/assets\/index-\w*\.css/),
fileName: expect.stringMatching(/assets\/index-[-\w]*\.css/),
},
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ async function createAssetImportMetaurlPluginTransform() {
const environment = new PartialEnvironment('client', config)

return async (code: string) => {
// @ts-expect-error transform should exist
const result = await instance.transform.call(
// @ts-expect-error transform.handler should exist
const result = await instance.transform.handler.call(
{ environment, parse: parseAst },
code,
'foo.ts',
Expand Down

0 comments on commit 3d8ada8

Please sign in to comment.