Skip to content

Commit

Permalink
Simplify testing setup, switch to jest
Browse files Browse the repository at this point in the history
  • Loading branch information
janrg committed Apr 12, 2020
1 parent 8643e35 commit 333c51e
Show file tree
Hide file tree
Showing 7 changed files with 5,340 additions and 3,364 deletions.
8 changes: 2 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,10 @@
"wrap-regex": "error"
},
"overrides": [{
"env": {"mocha": true},
"files": "test/**",
"globals": {
"assert": true
}
"env": {"jest": true},
"files": "test/**"
}],
"globals": {
"moment": false,
"luxon": false
}
}
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
collectCoverage: true,
coverageDirectory: 'coverage',
testEnvironment: 'node',
testMatch: ['**/test/tests.js'],
};
Loading

0 comments on commit 333c51e

Please sign in to comment.