Skip to content

Commit dd25c1a

Browse files
authored
test: update filename regex (#18593)
1 parent a51c254 commit dd25c1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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]{8}\.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]{8}\.css/),
637637
},
638638
],
639639
})

0 commit comments

Comments
 (0)