@angular/core 16.2.1 → 16.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/src/application_ref.mjs +3 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed.mjs +2 -2
- package/esm2022/testing/src/test_hooks.mjs +7 -3
- package/fesm2022/core.mjs +4 -4
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +9 -5
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +4 -4
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
- package/schematics/migrations/remove-module-id/bundle.js +14 -14
- package/schematics/ng-generate/standalone-migration/bundle.js +380 -378
- package/schematics/ng-generate/standalone-migration/bundle.js.map +2 -2
- package/testing/index.d.ts +2 -2
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.2.
|
|
2
|
+
* @license Angular v16.2.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -10939,7 +10939,7 @@ class Version {
|
|
|
10939
10939
|
/**
|
|
10940
10940
|
* @publicApi
|
|
10941
10941
|
*/
|
|
10942
|
-
const VERSION = new Version('16.2.
|
|
10942
|
+
const VERSION = new Version('16.2.2');
|
|
10943
10943
|
|
|
10944
10944
|
// This default value is when checking the hierarchy for a token.
|
|
10945
10945
|
//
|
|
@@ -26706,7 +26706,7 @@ class TestBedImpl {
|
|
|
26706
26706
|
/**
|
|
26707
26707
|
* Runs the given function in the `EnvironmentInjector` context of `TestBed`.
|
|
26708
26708
|
*
|
|
26709
|
-
* @see EnvironmentInjector#runInContext
|
|
26709
|
+
* @see {@link EnvironmentInjector#runInContext}
|
|
26710
26710
|
*/
|
|
26711
26711
|
static runInInjectionContext(fn) {
|
|
26712
26712
|
return TestBedImpl.INSTANCE.runInInjectionContext(fn);
|
|
@@ -27110,11 +27110,15 @@ function withModule(moduleDef, fn) {
|
|
|
27110
27110
|
* allows tests to be asynchronous by either returning a promise or using a 'done' parameter.
|
|
27111
27111
|
*/
|
|
27112
27112
|
// Reset the test providers and the fake async zone before each test.
|
|
27113
|
-
|
|
27113
|
+
// We keep a guard because somehow this file can make it into a bundle and be executed
|
|
27114
|
+
// beforeEach is only defined when executing the tests
|
|
27115
|
+
globalThis.beforeEach?.(getCleanupHook(false));
|
|
27114
27116
|
// We provide both a `beforeEach` and `afterEach`, because the updated behavior for
|
|
27115
27117
|
// tearing down the module is supposed to run after the test so that we can associate
|
|
27116
27118
|
// teardown errors with the correct test.
|
|
27117
|
-
|
|
27119
|
+
// We keep a guard because somehow this file can make it into a bundle and be executed
|
|
27120
|
+
// afterEach is only defined when executing the tests
|
|
27121
|
+
globalThis.afterEach?.(getCleanupHook(true));
|
|
27118
27122
|
function getCleanupHook(expectedTeardownValue) {
|
|
27119
27123
|
return () => {
|
|
27120
27124
|
const testBed = TestBedImpl.INSTANCE;
|