Skip to content

Commit

Permalink
fixup! refactor(core): Add fake navigation to primitives for code sha…
Browse files Browse the repository at this point in the history
…ring
  • Loading branch information
atscott committed Feb 14, 2025
1 parent 5ce8c36 commit 6550957
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 15 deletions.
1 change: 0 additions & 1 deletion packages/common/testing/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ ng_module(
deps = [
"//packages/common",
"//packages/core",
"//packages/core/testing",
"@npm//rxjs",
],
)
Expand Down
2 changes: 1 addition & 1 deletion packages/common/testing/src/navigation/fake_navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
* found in the LICENSE file at https://angular.dev/license
*/

export {ɵFakeNavigation as FakeNavigation} from '@angular/core/testing';
export {ɵFakeNavigation as FakeNavigation} from '@angular/core';
1 change: 1 addition & 0 deletions packages/core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ng_module(
deps = [
"//packages:types",
"//packages/core/primitives/dom-navigation",
"//packages/core/primitives/dom-navigation/testing",
"//packages/core/primitives/event-dispatch",
"//packages/core/primitives/signals",
"//packages/core/src/compiler",
Expand Down
3 changes: 1 addition & 2 deletions packages/core/primitives/dom-navigation/testing/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ load("//tools:defaults.bzl", "ts_library", "tsec_test")

package(default_visibility = [
"//packages:__pkg__",
"//packages/common:__subpackages__",
"//packages/core:__pkg__",
"//packages/core/primitives/dom-navigation/testing:__subpackages__",
"//packages/core/testing:__subpackages__",
"//tools/public_api_guard:__pkg__",
])

Expand Down
1 change: 1 addition & 0 deletions packages/core/src/core_private_export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export {
type NavigationInterceptOptions as ɵNavigationInterceptOptions,
type NavigationDestination as ɵNavigationDestination,
} from '../primitives/dom-navigation';
export {FakeNavigation as ɵFakeNavigation} from '../primitives/dom-navigation/testing';
export {setAlternateWeakRefImpl as ɵsetAlternateWeakRefImpl} from '../primitives/signals';
export {detectChangesInViewIfRequired as ɵdetectChangesInViewIfRequired} from './application/application_ref';
export {INTERNAL_APPLICATION_ERROR_HANDLER as ɵINTERNAL_APPLICATION_ERROR_HANDLER} from './error_handler';
Expand Down
1 change: 0 additions & 1 deletion packages/core/testing/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ ng_module(
"//packages:types",
"//packages/compiler",
"//packages/core",
"//packages/core/primitives/dom-navigation/testing",
"//packages/localize",
"//packages/zone.js/lib:zone_d_ts",
"@npm//@types/jasmine",
Expand Down
1 change: 0 additions & 1 deletion packages/core/testing/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
* Entry point for all public APIs of this package.
*/
export * from './src/testing';
export * from './src/testing_private_export';

// This file only reexports content of the `src` folder. Keep it that way.
9 changes: 0 additions & 9 deletions packages/core/testing/src/testing_private_export.ts

This file was deleted.

0 comments on commit 6550957

Please sign in to comment.