Closed trpfrog closed 8 months ago
resolves #67
Vitest に移行した。
bun rm jest ts-jest @types/jest jest-environment-jsdom
rm jest.config.js
mv jest.setup.js vitest.setup.js
setupFiles: './vitest.setup.ts'
jsdom
happy-dom
bun rm jsdom && bun add -D happy-dom
environment
jest.*
vi.*
expect
globals: true
The latest updates on your projects. Learn more about Vercel for Git ↗︎
resolves #67
Vitest に移行した。
Why Vitest?
作業手順
bun rm jest ts-jest @types/jest jest-environment-jsdom
rm jest.config.js
mv jest.setup.js vitest.setup.js
して config にsetupFiles: './vitest.setup.ts'
を追加jsdom
=>happy-dom
bun rm jsdom && bun add -D happy-dom
environment
をhappy-dom
に変更jest.*
をvi.*
に置換expect
などを使えるようにglobals: true
を config に追加