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
This commit is contained in:
parent
dee486e3aa
commit
9a2ac6a8ac
@ -1,4 +1,4 @@
|
|||||||
import { renderHook, act } from '@testing-library/react-hooks';
|
import { renderHook, act } from '@testing-library/react';
|
||||||
import useLocalValues from './use-local-values';
|
import useLocalValues from './use-local-values';
|
||||||
|
|
||||||
describe('local values hook', () => {
|
describe('local values hook', () => {
|
||||||
|
@ -8,4 +8,7 @@ module.exports = {
|
|||||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
||||||
coverageDirectory: '../../coverage/apps/token',
|
coverageDirectory: '../../coverage/apps/token',
|
||||||
setupFilesAfterEnv: ['./src/setup-tests.ts'],
|
setupFilesAfterEnv: ['./src/setup-tests.ts'],
|
||||||
|
moduleNameMapper: {
|
||||||
|
'^d3-(.*)$': `d3-$1/dist/d3-$1`,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user