新着一覧

  1. ts-jestが外部ライブラリをimportできない場合の対処方

    ブログ
    TypeScript ユニットテスト

    あるnpmパッケージを追加した後、Webpackのビルドは通っているのにJestでは以下のようなエラーが出るようになった。 ● Test suite failed to run Jest encountered an unexpected token This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript. By default, if Jest sees a Babel config,