[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

test(vite-node): test css import (#7653)

authored by

Hiroshi Ogawa and committed by
GitHub
(Mar 11, 2025, 2:39 PM +0100) 20b39c41 eab5c375

+6 -1
+1 -1
test/vite-node/src/deps.ts
··· 1 1 import './deps.css' 2 2 3 3 // eslint-disable-next-line no-console 4 - console.log('deps') 4 + console.log('[deps.ts] imported') 5 5 6 6 export {} 7 7
+5
test/vite-node/test/hmr.test.ts
··· 28 28 await viteNode.waitForStderr('some error') 29 29 await viteNode.waitForStderr(`[hmr] Failed to reload ${scriptFile}. This could be due to syntax errors or importing non-existent modules. (see errors above)`) 30 30 }) 31 + 32 + test('basic', async () => { 33 + const { viteNode } = await runViteNodeCli('--watch', resolve(__dirname, '../src/testMod.ts')) 34 + await viteNode.waitForStdout('[deps.ts] imported') 35 + })