Skip to content

Commit

Permalink
Migrates testing to use Jest and normalizes the function scopes
Browse files Browse the repository at this point in the history
Mocha, chai and sinon are slowly losing support and start conflicting with dependencies. Moving to Jest to future proof and make it a common use within our group.
  • Loading branch information
acolchado committed Dec 5, 2023
1 parent 89a0e9e commit 1712fdf
Show file tree
Hide file tree
Showing 7 changed files with 3,545 additions and 1,084 deletions.
13 changes: 0 additions & 13 deletions .mocharc.js

This file was deleted.

23 changes: 23 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
collectCoverage: true,
collectCoverageFrom: [
'./src/**/*.[jt]s?(x)'
],
coverageDirectory: 'coverage',
coveragePathIgnorePatterns: [
'/node_modules/'
],
moduleFileExtensions: [
'js',
'json'
],
rootDir: '.',
testEnvironment: 'node',
testMatch: [
'**/__tests__/**/*.[jt]s?(x)',
'**/?(*.)+(spec).[tj]s?(x)'
],
testPathIgnorePatterns: [
'/node_modules/'
],
};
Loading

0 comments on commit 1712fdf

Please sign in to comment.