From a083fafa1653072b0b2efe2fc8f19353d1581ce1 Mon Sep 17 00:00:00 2001 From: Brian Love Date: Tue, 16 Jun 2026 21:11:38 -0700 Subject: [PATCH] fix(examples/chat): import vitest globals in e2e-overrides spec (unbreak app build) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `tsconfig.app.json` includes `src/**/*.ts` with `types: []`, so the Angular app build type-checks every spec. `e2e-overrides.spec.ts` (added in #677) used ambient `describe`/`it`/`expect`/`afterEach`, which fail under the app build (`TS2304`/`TS2593`) — the bundle never generates, the e2e server never starts, and all 4 `examples/chat` e2e shards time out. Matches the existing specs by importing the globals from vitest explicitly. Regressed main at 3c45540f (#677 merge); local `nx test` masked it because only `nx serve`/the app build compiles specs under tsconfig.app.json. Co-Authored-By: Claude Fable 5 --- examples/chat/angular/src/app/shell/e2e-overrides.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/chat/angular/src/app/shell/e2e-overrides.spec.ts b/examples/chat/angular/src/app/shell/e2e-overrides.spec.ts index 604f72f9..3f79a9b5 100644 --- a/examples/chat/angular/src/app/shell/e2e-overrides.spec.ts +++ b/examples/chat/angular/src/app/shell/e2e-overrides.spec.ts @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +import { describe, it, expect, afterEach } from 'vitest'; import { e2eClientOptions } from './e2e-overrides'; const KEY = 'THREADPLANE_E2E_MAX_RETRIES';