[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.

fix: allow assigning new hotContext (#2524)

* Allow assigning new hotContext

* fix lint

* add a regression case

authored by

Hyeseong Kim and committed by
GitHub
(Dec 19, 2022, 1:24 PM +0300) b4c43cd5 b8f34eb8

+8
+3
packages/vite-node/src/client.ts
··· 323 323 hotContext ||= this.options.createHotContext?.(this, `/@fs/${fsPath}`) 324 324 return hotContext 325 325 }, 326 + set: (value) => { 327 + hotContext = value 328 + }, 326 329 }) 327 330 } 328 331
+3
test/vite-node/src/deps.css
··· 1 + body { 2 + margin: 0; 3 + }
+2
test/vite-node/src/deps.ts
··· 1 + import './deps.css' 2 + 1 3 // eslint-disable-next-line no-console 2 4 console.log('deps') 3 5