We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24c2eca commit ee697aaCopy full SHA for ee697aa
test-setup.js renamed to jest-setup.js
jest.config.js
@@ -1,7 +1,7 @@
1
module.exports = {
2
preset: 'ts-jest',
3
testEnvironment: 'node',
4
- setupFilesAfterEnv: ['<rootDir>/test-setup.js'],
+ setupFilesAfterEnv: ['<rootDir>/jest-setup.js'],
5
snapshotSerializers: ['enzyme-to-json/serializer'],
6
transform: { '^.+\\.tsx?$': 'ts-jest' },
7
testMatch: ['**/__tests__/**/*.ts?(x)', '**/?(*.)+(test).ts?(x)'],
src/__tests__/bestcomments.spec.tsx
import * as React from 'react';
import { shallow } from 'enzyme';
-import { BestCommentsPage } from '../bestcomments';
+import BestCommentsPage from '../../pages/bestcomments';
describe('Best Comments Page', () => {
it('is defined', () => {
0 commit comments