fix(tests): load JIT compiler before router imports in seo.service.spec
CI Pipeline / backend-test (push) Successful in 14m20s
CI Pipeline / frontend-test (push) Failing after 14s
CI Pipeline / frontend-build (push) Failing after 10s
CI Pipeline / backend-lint (push) Successful in 10s
CI Pipeline / backend-test (pull_request) Successful in 11m56s
CI Pipeline / frontend-test (pull_request) Failing after 22s
CI Pipeline / frontend-build (pull_request) Failing after 19s
CI Pipeline / quality-gate (pull_request) Successful in 3s
CI Pipeline / backend-lint (pull_request) Successful in 11s
CI Pipeline / quality-gate (push) Successful in 3s

The PlatformLocation static initializer in @angular/common/router
requires @angular/compiler to be loaded first. Move the compiler
import before any Angular router/common imports so the JIT facade
is available when the module loads.
This commit is contained in:
robot committed 2026-08-05 21:24:52 +00:00
1 parent a783626f34
commit 0bde1cfc75
1 file changed
+4
+4
View File
@@ -1,3 +1,7 @@
// Load the JIT compiler BEFORE any Angular router/common imports so that
// injectables like PlatformLocation can be instantiated without TestBed.
import '@angular/compiler';
import { describe, it, expect, beforeEach, vi } from 'vitest'; import { describe, it, expect, beforeEach, vi } from 'vitest';
import { Subject } from 'rxjs'; import { Subject } from 'rxjs';
import { NavigationEnd } from '@angular/router'; import { NavigationEnd } from '@angular/router';