blob: 96e4433b57c5e837457fc086e3d3aa9e84bad8ed [file]
const path = require('path');
module.exports = {
testEnvironment: 'node',
haste: {
enableSymlinks: true,
},
reporters: ['default', './jest-reporter'],
// explicitly specify the path to babel.config.js relative to jest.config.js so
// jest can find it even when jest.config.js is not in the root folder of the workspace
transform:
{'^.+\\.[jt]sx?$': ['babel-jest', {configFile: path.resolve(__dirname, 'babel.config.js')}]},
testMatch: ['**/*.test.js']
};