Closed andrew-w-ross closed 5 years ago
Using the config in the readme:
module.exports = { runner: 'jest-runner-tsc', displayName: 'tsc', moduleFileExtensions: ['ts', 'tsx'], testMatch: ['<rootDir>/**/*.ts'], };
Fails when running jest with
Validation Error: moduleFileExtensions must include 'js': but instead received: ["ts","tsx"] Please change your configuration to include 'js'. Configuration Documentation: https://jestjs.io/docs/configuration.html
To fix just add js to moduleFileExtensions.
js
moduleFileExtensions
Huh, this must be new-ish. Do you want to do a PR to update the docs?
Using the config in the readme:
Fails when running jest with
To fix just add
js
tomoduleFileExtensions
.