Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
vitest
Search
nikawa2161
November 15, 2024
45
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
vitest
nikawa2161
November 15, 2024
Transcript
10 slides
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
More Decks by nikawa2161
See All by nikawa2161
Node.js Subpath imports
nikawa2161
0
50
Sagaパターン入門(続編)
nikawa2161
0
59
Sagaパターン入門
nikawa2161
0
85
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
44
20251209_プログラミング原則の学び
nikawa2161
0
47
自分のコードを数年ぶりに読んだら
nikawa2161
0
29
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
49
oEmbedとは?
nikawa2161
0
280
はじめまして、にかわです
nikawa2161
0
34
Featured
See All Featured
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
700
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.7k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k
The Pragmatic Product Professional
lauravandoore
37
7.5k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
990
Building an army of robots
kneath
307
47k
Mind Mapping
helmedeiros
1
460
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Building Applications with DynamoDB
mza
96
7.3k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.9k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.9k