エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
外部パッケージに ESM が使われているコードを ts-jest でテストしたい
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
外部パッケージに ESM が使われているコードを ts-jest でテストしたい
$ yarn test src/components/post yarn run v1.22.10 $ jest src/components/post FAIL src/components/... $ yarn test src/components/post yarn run v1.22.10 $ jest src/components/post FAIL src/components/post/Post/Post.test.tsx ● Test suite failed to run Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax. Out of the box Jest supports Babel, which