refactor(core): convert scripts within packages/core/testing to relative imports (#60232)

This commit updates scripts within `packages/core/testing` to relative imports as a prep work to the upcoming infra updates.

PR Close #60232
This commit is contained in:
Andrew Kushnir 2025-03-05 14:16:41 -08:00 committed by Jessica Janiuk
parent 33c24624be
commit e5cc624b87
10 changed files with 12 additions and 12 deletions

View file

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.dev/license
*/
import {ErrorHandler, inject, NgZone, Injectable} from '@angular/core';
import {ErrorHandler, inject, NgZone, Injectable} from '../../src/core';
export const RETHROW_APPLICATION_ERRORS_DEFAULT = true;

View file

@ -25,7 +25,7 @@ import {
ɵZONELESS_ENABLED as ZONELESS_ENABLED,
ɵPendingTasksInternal as PendingTasks,
ɵEffectScheduler as EffectScheduler,
} from '@angular/core';
} from '../../src/core';
import {Subscription} from 'rxjs';
import {DeferBlockFixture} from './defer';

View file

@ -13,7 +13,7 @@ import {
ɵgetDeferBlocks as getDeferBlocks,
ɵrenderDeferBlockState as renderDeferBlockState,
ɵtriggerResourceLoading as triggerResourceLoading,
} from '@angular/core';
} from '../../src/core';
import type {ComponentFixture} from './component_fixture';

View file

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.dev/license
*/
import {Injectable} from '@angular/core';
import {Injectable} from '../../src/core';
@Injectable()
export class Log<T = string> {

View file

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.dev/license
*/
import {ɵstringify as stringify} from '@angular/core';
import {ɵstringify as stringify} from '../../src/core';
import {MetadataOverride} from './metadata_override';

View file

@ -13,7 +13,7 @@ import {
Pipe,
Type,
ɵReflectionCapabilities as ReflectionCapabilities,
} from '@angular/core';
} from '../../src/core';
import {MetadataOverride} from './metadata_override';
import {MetadataOverrider} from './metadata_overrider';

View file

@ -37,7 +37,7 @@ import {
ɵsetUnknownElementStrictMode as setUnknownElementStrictMode,
ɵsetUnknownPropertyStrictMode as setUnknownPropertyStrictMode,
ɵstringify as stringify,
} from '@angular/core';
} from '../../src/core';
import {ComponentFixture} from './component_fixture';
import {MetadataOverride} from './metadata_override';
@ -118,7 +118,7 @@ export interface TestBed {
/**
* Runs the given function in the `EnvironmentInjector` context of `TestBed`.
*
* @see {@link EnvironmentInjector#runInContext}
* @see {@link https://angular.dev/api/core/EnvironmentInjector#runInContext}
*/
runInInjectionContext<T>(fn: () => T): T;
@ -364,7 +364,7 @@ export class TestBedImpl implements TestBed {
/**
* Runs the given function in the `EnvironmentInjector` context of `TestBed`.
*
* @see {@link EnvironmentInjector#runInContext}
* @see {@link https://angular.dev/api/core/EnvironmentInjector#runInContext}
*/
static runInInjectionContext<T>(fn: () => T): T {
return TestBedImpl.INSTANCE.runInInjectionContext(fn);

View file

@ -10,7 +10,7 @@ import {
InjectionToken,
SchemaMetadata,
ɵDeferBlockBehavior as DeferBlockBehavior,
} from '@angular/core';
} from '../../src/core';
/** Whether test modules should be torn down by default. */
export const TEARDOWN_TESTING_MODULE_ON_DESTROY_DEFAULT = true;

View file

@ -65,7 +65,7 @@ import {
ɵɵInjectableDeclaration as InjectableDeclaration,
NgZone,
ErrorHandler,
} from '@angular/core';
} from '../../src/core';
import {ComponentDef, ComponentType} from '../../src/render3';

View file

@ -44,5 +44,5 @@ export {MetadataOverrider as ɵMetadataOverrider} from './metadata_overrider';
export {
ɵDeferBlockBehavior as DeferBlockBehavior,
ɵDeferBlockState as DeferBlockState,
} from '@angular/core';
} from '../../src/core';
export {DeferBlockFixture} from './defer';