Skip to content

Commit

Permalink
Setting global jest options to be inherited to each project.
Browse files Browse the repository at this point in the history
  • Loading branch information
armfazh committed Sep 6, 2023
1 parent bd6e133 commit 0a25b7b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ function getConfig(version) {
return {
displayName: version,
roots: [`./lib/${version}/test`],
moduleFileExtensions: ['js'],
testEnvironment: 'node',
transform: {},
setupFiles: [`./lib/${version}/mockCrypto/mock_crypto.js`],
collectCoverage: true,
coverageDirectory: `coverage/${version}`,
verbose: true
coverageDirectory: `coverage/${version}`
}
}

export default {
moduleFileExtensions: ['js'],
testEnvironment: 'node',
transform: {},
collectCoverage: true,
verbose: true,
projects: [getConfig('esm'), getConfig('cjs')]
}

0 comments on commit 0a25b7b

Please sign in to comment.