vega-frontend-monorepo/apps/token/jest.config.js
m.ray 9a2ac6a8ac
chore: fix failing test on proposal-list.spec (#985)
* chore: add moduleNameMapper for d3 in token jest.config.js

* remove extra line of transform

* fix: use @testing-library/react not react-hooks
2022-08-09 14:25:47 +01:00

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`,
},
};