Skip to content

Commit

Permalink
Add essential npm pkgs for front-end unit testing
Browse files Browse the repository at this point in the history
Needed to install ts-jest to avoid typescript errors when trying to clear mocked implementation. See link below:
kulshekhar/ts-jest#576

Also CRA has outdated jsdom (v14.1.0) which results in MutationObserver error when trying to use WaitFor's in react testing library. Needed to jsdom-sixteen package to run jest with jsdom v16. See the link below
testing-library/dom-testing-library#477
  • Loading branch information
jonotp committed Oct 25, 2020
1 parent 1b175c1 commit b4c926a
Show file tree
Hide file tree
Showing 3 changed files with 612 additions and 2 deletions.
4 changes: 4 additions & 0 deletions client/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
Loading

0 comments on commit b4c926a

Please sign in to comment.