Skip to content

Commit a036fd2

Browse files
Remove jest roots for external devs (#831)
1 parent 6a2e170 commit a036fd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configs/jest-config/base.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// const esModules = ['@monkvision/test-utils', 'ky'].join('|');
1+
const esModules = ['@monkvision/test-utils', 'ky'].join('|');
22

33
module.exports = (options) => ({
44
rootDir: './',
5-
roots: ['<rootDir>', '<rootDir>/../../configs/test-utils/src/__mocks__'],
5+
roots: options.monorepo ? ['<rootDir>', '<rootDir>/../../configs/test-utils/src/__mocks__'] : ['<rootDir>'],
66
preset: 'ts-jest',
77
testEnvironment: 'node',
88
testMatch: ['**/test/**/*.test.ts'],
@@ -11,7 +11,7 @@ module.exports = (options) => ({
1111
collectCoverageFrom: [
1212
'src/**/*.ts',
1313
],
14-
// transformIgnorePatterns: options?.monorepo ? [] : [`node_modules/(?!${esModules})`],
14+
transformIgnorePatterns: options?.monorepo ? [] : [`node_modules/(?!${esModules})`],
1515
coverageThreshold: {
1616
global: {
1717
branches: 60,

0 commit comments

Comments
 (0)