Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/vite-node/src/deps.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './deps.css'

// eslint-disable-next-line no-console
console.log('deps')
console.log('[deps.ts] imported')

export {}

Expand Down
5 changes: 5 additions & 0 deletions test/vite-node/test/hmr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ test('can handle top-level throw in self-accepting module', async () => {
await viteNode.waitForStderr('some error')
await viteNode.waitForStderr(`[hmr] Failed to reload ${scriptFile}. This could be due to syntax errors or importing non-existent modules. (see errors above)`)
})

test('basic', async () => {
const { viteNode } = await runViteNodeCli('--watch', resolve(__dirname, '../src/testMod.ts'))
await viteNode.waitForStdout('[deps.ts] imported')
})
Loading