0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VSCodeのExtension「Jest」の設定ファイルjest.configのパス

0
Posted at

Githubからクローンしてきたソフトウェアで、yarn testとかは動くけど、VSCode上のJest拡張機能のテストが失敗してしまいました。このような場合は、package.jsonのscriptsにJestの設定ファイルのパスが指定されていないか確認してみましょう。

VSCodeのJest拡張機能で見に行くconfigファイルはjest.config.jsなので、package.jsonでこれ以外のパスを設定していたりするとうまく動きません。

we find Jest configuration files in the workspace: jest.config.js or jest.json

私の場合は、VSCode上のJestだけ以下のエラーが出ている状態でしたが、configのパスを修正したところエラーが解消しました。

Support for the experimental syntax 'jsx' isn't currently enabled

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?