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:
m.ray 2022-08-09 15:25:47 +02:00 committed by GitHub
parent dee486e3aa
commit 9a2ac6a8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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';
describe('local values hook', () => {

View File

@ -8,4 +8,7 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/apps/token',
setupFilesAfterEnv: ['./src/setup-tests.ts'],
moduleNameMapper: {
'^d3-(.*)$': `d3-$1/dist/d3-$1`,
},
};