Skip to content

Commit

Permalink
Merge pull request #53 from opentable/AC/jest-migration
Browse files Browse the repository at this point in the history
Migrates testing to use Jest and normalizes the function scopes
  • Loading branch information
acolchado authored Dec 5, 2023
2 parents 89a0e9e + 1712fdf commit 2ffc268
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 2ffc268

Please sign in to comment.