diff --git a/pi-test-status/extensions/index.ts b/pi-test-status/extensions/index.ts index e68d081..9556bc8 100644 --- a/pi-test-status/extensions/index.ts +++ b/pi-test-status/extensions/index.ts @@ -17,7 +17,7 @@ export default function testStatusExtension(pi: ExtensionAPI) { const testsPassed = /Tests\s+.+passed/.test(output) && !/Tests\s+.+failed/.test(output); const testsFailed = - /Tests\s+.+failed/.test(output) || event.details?.exitCode !== 0; + /Tests\s+.+failed/.test(output) || event.isError; if (testsPassed) { // Extract summary line for inline detail (e.g., "1 passed (242ms)") diff --git a/pi-test-status/package.json b/pi-test-status/package.json index e9bafe9..2c6ec7a 100644 --- a/pi-test-status/package.json +++ b/pi-test-status/package.json @@ -10,7 +10,8 @@ "README.md" ], "scripts": { - "test": "echo \"No tests yet\"" + "test": "echo \"No tests yet\"", + "typecheck": "tsc --noEmit" }, "peerDependencies": { "@earendil-works/pi-coding-agent": "*" diff --git a/pi-test-status/tsconfig.json b/pi-test-status/tsconfig.json new file mode 100644 index 0000000..4c2b960 --- /dev/null +++ b/pi-test-status/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "bundler", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "outDir": "dist", + "noEmit": true + }, + "include": ["extensions"] +} \ No newline at end of file