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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
nikawa2161
November 15, 2024
2
15
vitest
nikawa2161
November 15, 2024
Tweet
Share
More Decks by nikawa2161
See All by nikawa2161
Node.js Subpath imports
nikawa2161
0
11
Sagaパターン入門(続編)
nikawa2161
0
22
Sagaパターン入門
nikawa2161
0
29
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
24
20251209_プログラミング原則の学び
nikawa2161
0
19
自分のコードを数年ぶりに読んだら
nikawa2161
0
14
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
16
oEmbedとは?
nikawa2161
0
29
はじめまして、にかわです
nikawa2161
0
14
Featured
See All Featured
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
250
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
180
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.5k
The Limits of Empathy - UXLibs8
cassininazir
1
270
Building an army of robots
kneath
306
46k
How to Talk to Developers About Accessibility
jct
2
160
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
280
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
54k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
GraphQLとの向き合い方2022年版
quramy
50
14k
Between Models and Reality
mayunak
2
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