Skip to content

Commit

Permalink
chore(jest): [RO-26531] Migrated test runner to Jest
Browse files Browse the repository at this point in the history
  • Loading branch information
otrreeves committed Apr 2, 2024
1 parent 3fff750 commit 6e50b5c
Show file tree
Hide file tree
Showing 18 changed files with 4,164 additions and 1,667 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.

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

0 comments on commit 6e50b5c

Please sign in to comment.