メインコンテンツにスキップ

テスト

コードのテストに使うツール

We're highlighting interesting features or libraries we think you should know about.

Library Highlight: bun test

After years of hoping for a more unified toolchain, it looks like JavaScript developers might finally be starting to get their wish.

Bun test is just one example of a test runner being baked into the runtime, with Node and Deno offering their own equivalents.

Useful Resources

Testing Tools Ratios Over Time

Jestは長らく最も使われているテストツールとして不動の地位を築いてきましたが、現在Vitestが猛烈な勢いで追い上げています。Jestの満足度が低下傾向にあることを考えると、来年にもVitestが首位の座を奪ったとしても不思議ではありません。

一方で、ユーザーの不満を解消しようと最善を尽くしているプロジェクトとして、 Storybook は興味深い事例と言えるでしょう。満足度は昨年と比較して依然としてわずかに低下していますが、その下落ペースは鈍化しており、近いうちに状況は好転し始めるかもしれません。

Jest
Mocha
Storybook
Cypress
Puppeteer
Testing Library
Playwright
WebdriverIO
Vitest
Selenium
TestCafe
Mock Service Worker
Node Test Runner
bun test

モード:

表示:

利用率:

Proportion of respondents having used an item
0%
20%
40%
60%
80%
100%
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
0%
20%
40%
60%
80%
100%

Other Testing Tools

Denoのテストランナーは、調査の主要な選択肢には含まれていなかったものの、自由記述欄での言及数では第1位となりました。
0%
20%
40%
60%
80%
100%
+3
44
2
-1
36
3
-2
17
+3
17
5
10
6
その他の回答
93
0%
20%
40%
60%
80%
100%
回答数に占める割合(%)
JavaScriptコミュニティのメンバーに、今年の「イチオシ」を聞いてみました。

My 2025 Pick: SST

わずか1年前まではSSTのことを全く知りませんでしたが、仕事の新しいプロジェクトで使い始めてみたところ、これが本当に素晴らしいんです!もっと多くの人に知られるべきツールだと思います。
JavaScriptコミュニティのメンバーに、今年の「イチオシ」を聞いてみました。
これまでの他のカテゴリーでは、使用されているツールは平均1〜2個程度にとどまっていました。しかしテストに関しては、回答の平均はなんと「4.4個」に達しています。これは、多くの人がまだ理想的なテストランナーを模索しており、この分野が依然としてまだ決着がついていない状態にあることを示唆しています。
0%
4%
7%
11%
15%
19%
01
0
2,425
02
1
892
03
2
1,082
04
3
1,156
05
4
1,229
06
5
1,250
07
6
1,230
08
7
1,076
09
8
1,008
10
9
719
11
10
495
12
11
266
13
12
112
14
13
49
15
14
13
0%
4%
7%
11%
15%
19%
%の質問回答数

テストツールの満足度

幸福度は安定して推移しており、ここ3年間はわずかに上昇傾向にあります。
1
2
3
4
5
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
1
2
3
4
5
平均

テストツールのつらいところ

モックは依然として開発者にとっての大きな悩みの種であり、設定やセットアップ(環境構築)の難しさがそれに次いでいます。
テストツールを使うときに、つらいと感じるところは何ですか?
Freeform
Multiple
0%
20%
40%
60%
80%
100%
01
Mocking
02
Configuration
03
Performance
04
Browser support
+13
05
-1
06
Excessive complexity
07
ESM & CJS
-2
08
browser_testing_issues
09
Flakiness
-2
10
E2E testing
-1
0%
20%
40%
60%
80%
100%
回答数に占める割合(%)

おすすめのリソース

Testing Fundamentals
Steve Kinney
Temporal

Testing Fundamentals

Ship code with confidence! Learn the basics of testing and apply Test-Driven Development techniques to your workflow. Create automated tests for DOM elements and user interactions. Use mocks and spies to control your environment and test more complex code.
Enterprise UI Development: Testing & Code Quality
Steve Kinney
Temporal

Enterprise UI Development: Testing & Code Quality

Learn unit testing with Vitest, continuous integration via GitHub Actions, component and accessibility testing with Ax, mocking techniques, and code standard enforcement using ESLint and Husky & Lint-Staged.
パートナーのサポートに感謝しています! 詳細をみる。