Skip to content

Commit

Permalink
test: update filename regex (#18593)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Nov 6, 2024
1 parent a51c254 commit dd25c1a
Showing 1 changed file with 2 additions and 2 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]{8}\.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]{8}\.css/),
},
],
})
Expand Down

0 comments on commit dd25c1a

Please sign in to comment.