test: update filename regex (#18593)

This commit is contained in:
翠 / green 2024-11-06 17:28:14 +09:00 committed by GitHub
parent a51c254265
commit dd25c1ab5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -602,7 +602,7 @@ describe('resolveBuildOutputs', () => {
fileName: 'index.mjs',
},
{
fileName: expect.stringMatching(/assets\/index-\w*\.css/),
fileName: expect.stringMatching(/assets\/index-[-\w]{8}\.css/),
},
],
})
@ -633,7 +633,7 @@ describe('resolveBuildOutputs', () => {
fileName: 'index.mjs',
},
{
fileName: expect.stringMatching(/assets\/index-\w*\.css/),
fileName: expect.stringMatching(/assets\/index-[-\w]{8}\.css/),
},
],
})