Skip to content

Commit

Permalink
fix(nx): merge jest.config.js globals with tsJestConfig instead of re…
Browse files Browse the repository at this point in the history
…placing

resolves nrwl#1059
  • Loading branch information
Jon Rista committed Sep 29, 2019
1 parent 579a155 commit a3e01d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/jest/src/builders/jest/jest.impl.ts
Expand Up @@ -76,7 +76,10 @@ function run(
const jestConfig: { globals: any } = require(options.jestConfig);
const globals = jestConfig.globals || {};
Object.assign(globals, {
'ts-jest': tsJestConfig
'ts-jest': {
...(globals['ts-jest'] || {}),
...tsJestConfig
}
});

const config: any = {
Expand Down

0 comments on commit a3e01d1

Please sign in to comment.