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
13
vitest
nikawa2161
November 15, 2024
Tweet
Share
More Decks by nikawa2161
See All by nikawa2161
Sagaパターン入門(続編)
nikawa2161
0
9
Sagaパターン入門
nikawa2161
0
13
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
19
20251209_プログラミング原則の学び
nikawa2161
0
12
自分のコードを数年ぶりに読んだら
nikawa2161
0
6
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
6
oEmbedとは?
nikawa2161
0
16
はじめまして、にかわです
nikawa2161
0
10
課題を映す問題空間と、答えを描く解決空間
nikawa2161
0
9
Featured
See All Featured
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
130
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
52
Darren the Foodie - Storyboard
khoart
PRO
2
2.3k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
61
49k
Bash Introduction
62gerente
615
210k
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
0
260
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
270
Making Projects Easy
brettharned
120
6.6k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
2.9k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
420
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