This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
jest-preset-angular (source) | devDependencies | major | ^11.1.2 -> ^12.0.0 |
v12.2.2
v12.2.1
v12.2.0
global-setup.mjs
to use with Jest ESM mode (#1661) (97a0ec8)TestEnvironmentOptions
for setup test env (#1657) (a64a4ac), closes #1656
v12.1.0
teardown
object to global-setup
(#1475) (3dab02b)destroyAfterEach
via globalThis
for setup test env (#1469) (9a735f9), closes #1466
v12.0.1
destroyAfterEach
via globalThis
for setup test env (#1469) (9a735f9), closes #1466
v12.0.0
jest
and typescript
to peer deps (#1442) (6a652af), closes #1441
setup-jest.mjs
for ESM mode (#1463) (cc6ce3f)esbuild
(#1455) (b58d089), closes #1413 #1437
ng-jest-resolver
from default/esm presets (#1440) (56673c4)reflect-metadata
in setup-jest
(#1428) (5a36729)zone-patch
and its fallback (#1427) (bf9ea44)ngcc
with specific tsconfig
path (#1418) (5f535b5), closes #1348
ngcc
via skipNgcc
option via globalThis
(#1417) (7950b5c), closes #1396
ngcc-jest-processor
entry file (#1414) (2c5fd20)zone.js
is 0.11.x and Angular 10 is EOL, so now we can use zone patch directly from zone.js
.
If one is not using zone.js@0.11.x
, please upgrade.reflect-metadata
is not needed anymore.ng-jest-resolver
is now optional..mjs
and any files from node_modules
excluding tslib
to be processed with esbuild
.
With the new option processWithEsbuild
, now we put default all .mjs
files to be processed by esbuild
. Files like lodash-es
default isn't processed by esbuild
.
If you wish to use esbuild
to process such files, please configure in your Jest config like// jest.config.js
module.exports = {
//...
globals: {
ngJest: {
processWithEsbuild: ['**/node_modules/lodash-es/*.js],
}
}
}
ngcc-jest-processor
entry file is now removed. One should use jest-preset-angular/global-setup
instead.This MR has been generated by Renovate Bot.