-
Notifications
You must be signed in to change notification settings - Fork 144
/
Copy pathjest.config.js
23 lines (22 loc) · 932 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const { createJestTSConfig } = require('@internal/config')
/**
* This config detects our monorepo, and allows
* you to run every single package test in a single jest instance using 'yarn jest'.
* Thus, `yarn jest --watch` works as expected (unlike say, when using turborepo)
*/
module.exports = () =>
createJestTSConfig(__dirname, {
projects: [
// being explicit here, as a globbing bug means that using packages/* can cause problems in non-worktrees (haven't fully investigated yet).
'<rootDir>/packages/core',
'<rootDir>/packages/core-integration-tests',
'<rootDir>/packages/node',
'<rootDir>/packages/browser',
'<rootDir>/packages/generic-utils',
'<rootDir>/packages/consent/consent-tools',
'<rootDir>/packages/consent/consent-wrapper-onetrust',
'<rootDir>/scripts',
'<rootDir>/packages/signals/signals',
'<rootDir>/packages/test-helpers',
],
})