Skip to content

Commit

Permalink
test: setup the project testing framework
Browse files Browse the repository at this point in the history
This configures Jest to use our custom matchers. Coincidentally, it is the same process that end
users will configure on their project.
  • Loading branch information
M-Scott-Lassiter committed May 18, 2022
1 parent 6db6a23 commit 6a95c37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// module.exports = {
// setupFilesAfterEnv: ['./src/JestMatchers/JestSetup.js']
// }
module.exports = {
setupFilesAfterEnv: ['./src/JestSetup.js']
}
3 changes: 3 additions & 0 deletions src/JestSetup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const matchers = require('./index')

expect.extend(matchers)

0 comments on commit 6a95c37

Please sign in to comment.