@tunnckocore/jest
Version:
Shareable configurations for all @tunnckoCore projects
23 lines (20 loc) • 680 B
JavaScript
// ! should match to the name defined inside the runner, by the runner developer
const runnerName = '@tunnckocore/jest-runner-babel';
const runnerConfig = {
babelrc: false,
presets: [
[
'@tunnckocore/babel-preset',
{ node: '6', react: true, typescript: true, modules: 'commonjs' },
],
],
};
// ! Passing runner options through ENV (extreme hack), yeah...
// ! Lets hope Jest v25 have support for this.
process.env[runnerName] = JSON.stringify(runnerConfig);
module.exports = {
displayName: 'build',
runner: require.resolve('./runner/index.js'),
testMatch: ['<rootDir>/packages/*/src/**/*'],
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
};