9a2ac6a8ac
* chore: add moduleNameMapper for d3 in token jest.config.js * remove extra line of transform * fix: use @testing-library/react not react-hooks
15 lines
421 B
JavaScript
15 lines
421 B
JavaScript
module.exports = {
|
|
displayName: 'token',
|
|
preset: '../../jest.preset.js',
|
|
transform: {
|
|
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nrwl/react/plugins/jest',
|
|
'^.+\\.[tj]sx?$': 'babel-jest',
|
|
},
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
|
coverageDirectory: '../../coverage/apps/token',
|
|
setupFilesAfterEnv: ['./src/setup-tests.ts'],
|
|
moduleNameMapper: {
|
|
'^d3-(.*)$': `d3-$1/dist/d3-$1`,
|
|
},
|
|
};
|