-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #851 from opengovsg/release-4.49.1
build: merge Release 4.49.1 into master
- Loading branch information
Showing
138 changed files
with
9,119 additions
and
3,531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
const { defaults: tsJestPreset } = require('ts-jest/presets') | ||
|
||
module.exports = { | ||
preset: '@shelf/jest-mongodb', | ||
preset: 'ts-jest', | ||
testMatch: ['**/?(*.)+(spec|test).[t]s?(x)'], | ||
modulePaths: ['<rootDir>'], | ||
testEnvironment: 'node', | ||
globalSetup: '<rootDir>/tests/jest-global-setup.js', | ||
testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/node_modules/'], | ||
transform: { | ||
// Needed to use @shelf/jest-mongodb preset. | ||
...tsJestPreset.transform, | ||
}, | ||
collectCoverageFrom: ['./src/**/*.{ts,js}', '!**/__tests__/**'], | ||
coveragePathIgnorePatterns: ['./node_modules/', './tests'], | ||
coverageReporters: ['lcov', 'text'], | ||
coverageThreshold: { | ||
global: { | ||
statements: 25, // Increase this percentage as test coverage improves | ||
statements: 38, // Increase this percentage as test coverage improves | ||
}, | ||
}, | ||
globals: { | ||
// Revert when memory leak in ts-jest is fixed. | ||
// See https://github.com/kulshekhar/ts-jest/issues/1967. | ||
'ts-jest': { | ||
isolatedModules: true, | ||
}, | ||
}, | ||
testEnvironment: 'node', | ||
} |
Oops, something went wrong.