2019-08-13 15:36:46 -04:00
|
|
|
// Initiate all tests from root, but allow tests from each package root.
|
|
|
|
|
// Share as much config as possible to reduce duplication.
|
|
|
|
|
//
|
|
|
|
|
// Borrowing from here:
|
|
|
|
|
// https://github.com/facebook/jest/issues/3112#issuecomment-398581705
|
2020-05-07 11:52:22 -03:00
|
|
|
const base = require('./jest.config.base.js');
|
2019-08-13 15:36:46 -04:00
|
|
|
|
2019-04-25 16:44:41 -04:00
|
|
|
module.exports = {
|
2019-08-13 15:36:46 -04:00
|
|
|
...base,
|
|
|
|
|
// https://jestjs.io/docs/en/configuration#projects-array-string-projectconfig
|
|
|
|
|
projects: [
|
|
|
|
|
// "<rootDir>/extensions/*/jest.config.js",
|
2020-05-07 11:52:22 -03:00
|
|
|
'<rootDir>/platform/*/jest.config.js',
|
|
|
|
|
'<rootDir>/extensions/*/jest.config.js',,
|
|
|
|
|
"<rootDir>/modes/*/je'<rootDir>/coverage/',coverageDirectory: "<rootDir>/coverage/"
|
2019-08-13 15:36:46 -04:00
|
|
|
};
|