Skip to content

Commit

Permalink
Merge pull request #76 from opentable/chore/ro-26531-spur-web-migrate…
Browse files Browse the repository at this point in the history
…-to-jest

chore(jest): [RO-26531] Migrated test runner to Jest
  • Loading branch information
otrreeves authored Apr 2, 2024
2 parents 3fff750 + fa5d593 commit 3d957a4
Show file tree
Hide file tree
Showing 18 changed files with 4,181 additions and 1,691 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.sass-cache/
.lock-wscript/
node_modules/
/coverage
/dist
/lib
.DS_Store*
13 changes: 0 additions & 13 deletions .mocharc.js

This file was deleted.

21 changes: 21 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/** @type {import('jest').Config} */
module.exports = {
collectCoverage: true,
collectCoverageFrom: ['./src/**/*.js'],
coverageDirectory: 'coverage',
coveragePathIgnorePatterns: ['/node_modules/'],
coverageThreshold: {
global: {
branches: 62,
functions: 84,
lines: 89,
statements: 89
}
},
maxWorkers: 1,
moduleFileExtensions: ['js','json'],
rootDir: '.',
testEnvironment: 'node',
testMatch: ['**/*.spec.js'],
setupFiles: ['./test/testSetup.js'],
};
Loading

0 comments on commit 3d957a4

Please sign in to comment.