$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
vitest
Search
nikawa2161
November 15, 2024
2
9
vitest
nikawa2161
November 15, 2024
Tweet
Share
More Decks by nikawa2161
See All by nikawa2161
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
1
自分のコードを数年ぶりに読んだら
nikawa2161
0
0
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
0
oEmbedとは?
nikawa2161
0
0
はじめまして、にかわです
nikawa2161
0
0
課題を映す問題空間と、答えを描く解決空間
nikawa2161
0
0
転生したら自己肯定感MAXになりたい
nikawa2161
0
0
沖縄リモート生活と、新しい発想の種
nikawa2161
0
0
バツイチマッチングアプリの進捗
nikawa2161
0
0
Featured
See All Featured
Writing Fast Ruby
sferik
630
62k
Ethics towards AI in product and experience design
skipperchong
1
140
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
190
Java REST API Framework Comparison - PWX 2021
mraible
34
9k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.3k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
45
Abbi's Birthday
coloredviolet
0
3.7k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
A designer walks into a library…
pauljervisheath
210
24k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
580
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.5k
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