どちらを選んでも、Jestは ファイルを見つけて実行します。 Whatever you prefer, Jest will find and run your tests. Jestは パフォーマンスを最大化するためテストをワーカーにまたがり並列実行します。Jest parallelizes test runs across workers to maximize performance.デフォルトでは、Jestは プロジェクトにある拡張子が.spec.jsもしくは.test。 By default, Jest will recursively pick up all files that have a. spec. js or. test. 注意:Jestは テストを高速化するためキャッシュ機能を持っています。 Note: Jest caches files to speed up test execution. Jestは この状況に対応するためにbeforeAllとafterAllを提供しています。Jest provides beforeAll and afterAll to handle this situation.
Jestは Facebookが開発したテストランナであり、ユニットテストソリューションの提供を目指しています。Jest is a test runner developed by Facebook, aiming to deliver a battery-included unit testing solution.Jestは webpackでアセットやスタイル、コンパイル作業を管理するプロジェクトで使用できます。Jest can be used in projects that use webpack to manage assets, styles, and compilation.最後に、yarntestを実行すると、Jestは 以下のメッセージを出力します。 Finally, run yarn test or npm run test and Jest will print this message. 引数にJSON形式の値を与えることでも、Jestは 設定として使用します。 This can also be a JSON-encoded value which Jest will use as configuration. Jestは バッテリー付属のユニットテストソリューションを提供するためにFacebookが開発したテストランナです。Jest is a test runner developed by Facebook, aiming to deliver a battery-included unit testing solution.Jestは テスト実行の高速化のために変換されたモジュールファイルをキャッシュします。Jest caches transformed module files to speed up test execution.Jestは ほとんどのJavaScriptプロジェクトにおいて、細かい設定不要で動作することを目指しています。Jest aims to work out of the box, config free, on most JavaScript projects.Jestは 、通常はdoneと呼ばれるテスト関数に引数を与えた場合にも待ちます。Jest will also wait if you provide an argument to the test function, usually called done.Resolvesマッチャを使うこともでき、Jestは そのpromiseが解決されるまで待機します。 Resolves matcher in your expect statement, and Jest will wait for that promise to resolve. Jestは Facebookのプロジェクトであり、ここ数週間で多くの支持を獲得しています。Jest , another Facebook project, got a lot of traction over the last weeks.デフォルトではJestは 全テストを実行し、完了時にコンソールに発生した全てのエラーを表示します。 By default, Jest runs all tests and produces all errors into the console upon completion. 最後に、yarntestまたはnpmruntestを実行すると、Jestは このメッセージを表示します。 Finally, run yarn test or npm run test and Jest will print this message. このオプションが指定された場合、Jestは CI環境で実行されていると仮定します。 When this option is provided, Jest will assume it is running in a CI environment. このコマンドでJestは 外部からのデバッガと接続できる状態のNodeプロセス上で実行されます。 This will run Jest in a Node process that an external debugger can connect to. Jestは Istanbulをラップするため、カバレッジを収集するのにどのファイルを使用するのかをIstanbulに伝えます。Jest wraps Istanbul, and therefore also tells Istanbul what files to instrument with coverage collection.
より多くの例を表示
結果: 210 ,
時間: 0.0178
English
中文
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Bahasa indonesia
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt