@jvdx/jest-preset
Version:
jvdx's jest preset
17 lines (15 loc) • 367 B
JavaScript
const config = {
testEnvironment: 'node',
testEnvironmentOptions: {
url: 'http://localhost'
},
watchPlugins: [
require.resolve('jest-watch-typeahead/filename'),
require.resolve('jest-watch-typeahead/testname'),
],
transform: {
'^.+\\.jsx?$': require.resolve('babel-jest'),
'^.+\\.(ts|tsx)$': require.resolve('ts-jest'),
}
}
module.exports = config;