Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
vitest
Search
nikawa2161
November 15, 2024
2
14
vitest
nikawa2161
November 15, 2024
Tweet
Share
More Decks by nikawa2161
See All by nikawa2161
Node.js Subpath imports
nikawa2161
0
7
Sagaパターン入門(続編)
nikawa2161
0
18
Sagaパターン入門
nikawa2161
0
25
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
22
20251209_プログラミング原則の学び
nikawa2161
0
17
自分のコードを数年ぶりに読んだら
nikawa2161
0
12
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
11
oEmbedとは?
nikawa2161
0
19
はじめまして、にかわです
nikawa2161
0
13
Featured
See All Featured
Practical Orchestrator
shlominoach
191
11k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
180
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
GraphQLの誤解/rethinking-graphql
sonatard
75
11k
The agentic SEO stack - context over prompts
schlessera
0
670
Designing Powerful Visuals for Engaging Learning
tmiket
0
250
The World Runs on Bad Software
bkeepers
PRO
72
12k
A designer walks into a library…
pauljervisheath
210
24k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Chasing Engaging Ingredients in Design
codingconduct
0
130
First, design no harm
axbom
PRO
2
1.1k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
240
Transcript
vitest vitestの紹介
AGENDA viteと vitestと 実行速Æ 機能
みんなご存じvitest
viteとは https://ja.vite.dev/guide/why.html
vitestとは a vitestはvite環境で動作する高速なテストフレームワーX a Jestと同じ領 a 特徴は速度が速い、移行が簡単、フロントで使いやす( a そのほか細かいチューニングがある
実行速度 https://zenn.dev/jay_es/articles/2021-12-22-vitest-comparison import { describe, expect, it } from "vitest";
import { add } from "./add"; describe("add", () => { it("1 + 2 = 3", () => { const result = add(1, 2); expect(result).toBe(3); }); }); Vitest Jest 743ms 941ms 実行速度 Vitest Jest 0ms 114ms watchモード watchは異常に早い
機能 É Coverag É Mockin É Testing type
機能 VItest Ui $ vitest --ui
まとめ Y jestの互換性もあるため、移行が簡F Y 機能もかなりあH Y Webpack→vite移行が進んでるので、そのタイミングでvitestに変えるとよそさそ4 Y ヨヤクスリもvitestにしたい
END