4ce6c9da52
Drives the extension's returned ThreadController API + asserts the on-disk sidecar and rendered Comments state (spec §6.8 fallback). All 4 host tests green against VS Code 1.124.0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
14 lines
548 B
TypeScript
14 lines
548 B
TypeScript
import * as path from "path";
|
|
import Mocha from "mocha";
|
|
import { glob } from "glob";
|
|
|
|
export async function run(): Promise<void> {
|
|
const mocha = new Mocha({ ui: "tdd", color: true, timeout: 60000 });
|
|
const testsRoot = path.resolve(__dirname);
|
|
const files = await glob("**/*.test.js", { cwd: testsRoot });
|
|
for (const f of files) mocha.addFile(path.resolve(testsRoot, f));
|
|
await new Promise<void>((resolve, reject) => {
|
|
mocha.run((failures) => (failures > 0 ? reject(new Error(`${failures} E2E test(s) failed`)) : resolve()));
|
|
});
|
|
}
|