Skip to content

Commit 8d31eea

Browse files
Copilotsapphi-red
andauthored
test(css): add test for vitejs#20520 (vitejs#20541)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: sapphi-red <[email protected]>
1 parent f1a2635 commit 8d31eea

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

playground/assets/__tests__/assets.spec.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ test('should have no 404s', () => {
4040
})
4141
})
4242

43+
test.runIf(isBuild)(
44+
'should not warn about VITE_ASSET tokens in image-set',
45+
async () => {
46+
expect(serverLogs).toStrictEqual(
47+
expect.not.arrayContaining([
48+
expect.stringMatching(/VITE_ASSET__.*?didn't resolve at build time/),
49+
]),
50+
)
51+
},
52+
)
53+
4354
test('should get a 404 when using incorrect case', async () => {
4455
expect((await fetchPath('icon.png')).headers.get('Content-Type')).toBe(
4556
'image/png',

0 commit comments

Comments
 (0)