-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cdk-plugin): use standalone jest config
We cannot migrate this package to vitest yet, until the following issue is resolved: vitest-dev/vitest#1436
- Loading branch information
1 parent
7b51d58
commit dbd8721
Showing
4 changed files
with
24 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
import { jestConfig } from '@swarmion/configuration'; | ||
import type { InitialOptionsTsJest } from 'ts-jest/dist/types'; | ||
|
||
export default { ...jestConfig, testTimeout: 10000 }; | ||
const TEST_REGEX = '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|js?|tsx?|ts?)$'; | ||
|
||
const config: InitialOptionsTsJest = { | ||
preset: 'ts-jest', | ||
testRegex: TEST_REGEX, | ||
globals: { | ||
'ts-jest': { | ||
isolatedModules: true, | ||
}, | ||
}, | ||
testEnvironment: 'node', | ||
coverageReporters: ['json', ['lcov', { projectRoot: './' }]], | ||
testPathIgnorePatterns: ['/node_modules/', '/dist/'], | ||
moduleDirectories: ['node_modules', '<rootDir>/src'], | ||
testTimeout: 10000, | ||
}; | ||
|
||
export default config; |
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