We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1a2635 commit 8d31eeaCopy full SHA for 8d31eea
playground/assets/__tests__/assets.spec.ts
@@ -40,6 +40,17 @@ test('should have no 404s', () => {
40
})
41
42
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
+
54
test('should get a 404 when using incorrect case', async () => {
55
expect((await fetchPath('icon.png')).headers.get('Content-Type')).toBe(
56
'image/png',
0 commit comments