Add support for jh/jest.config.js
What does this MR do and why?
JH needs the ability to customize the jest.config.js
for their environment. See related MR and discussion.
How to set up and validate locally
-
Checkout this branch
-
Run
yarn run jest
and confirm that jest is finding all the tests. Hit CTRL-C to quit. -
Apply the following patch to add a
jh/jest.config.js
:diff --git a/jh/jest.config.js b/jh/jest.config.js new file mode 100644 index 00000000000..c3f2dbb1604 --- /dev/null +++ b/jh/jest.config.js @@ -0,0 +1,6 @@ +const baseConfig = require('../jest.config.base'); + +module.exports = { + ...baseConfig('spec/frontend'), + testPathIgnorePatterns: ['spec.js'], +};
-
Run
yarn run jest
and confirm that jest does not find any tests, showing that thejh/jest.config.js
is extending the base config.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Paul Slaughter