Skip to content

Commit 840e27b

Browse files
committed
Split client and server tests into separate Jest "projects"
- server tests now use the "node" jest environment, removing the mongoose warning - both projects can use their own jest.setup.js file
1 parent e5554cb commit 840e27b

File tree

5 files changed

+17418
-12658
lines changed

5 files changed

+17418
-12658
lines changed

client/jest.setup.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
// eslint-disable-next-line import/no-extraneous-dependencies
3+
import { configure } from 'enzyme';
4+
// eslint-disable-next-line import/no-extraneous-dependencies
5+
import Adapter from 'enzyme-adapter-react-16';
6+
import '@babel/polyfill';
7+
8+
configure({ adapter: new Adapter() });

jest.setup.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)