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
21
2
Share
vitest
nikawa2161
November 15, 2024
More Decks by nikawa2161
See All by nikawa2161
Node.js Subpath imports
nikawa2161
0
15
Sagaパターン入門(続編)
nikawa2161
0
28
Sagaパターン入門
nikawa2161
0
35
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
33
20251209_プログラミング原則の学び
nikawa2161
0
22
自分のコードを数年ぶりに読んだら
nikawa2161
0
16
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
22
oEmbedとは?
nikawa2161
0
73
はじめまして、にかわです
nikawa2161
0
18
Featured
See All Featured
Odyssey Design
rkendrick25
PRO
2
640
It's Worth the Effort
3n
188
29k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
180
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
340
First, design no harm
axbom
PRO
2
1.2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.5k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
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