// Mock injectables imports to improve test performance
// Currently supports only jest
mockModules: 'jest',
// Automatically mock injectables imports (needs mockModules set)
// For instance mock all injectables imports that are 1st party @app/foo
defaultMockedModules: ['@app/'],
The former, together with a new injectable option called module, allows the module of the imported variable to be mocked by jest (via jest.mock).
The latter, is an experimental auto-mock behaviour, where we can automatically add jest.mock calls for all packages with an injectable defined. Should be useful to test the impact at scale (but lots of tests might fail)
New babel options:
The former, together with a new
injectable
option calledmodule
, allows the module of the imported variable to be mocked by jest (viajest.mock
).The latter, is an experimental auto-mock behaviour, where we can automatically add jest.mock calls for all packages with an injectable defined. Should be useful to test the impact at scale (but lots of tests might fail)