Skip to content

Commit 191f80a

Browse files
committed
fix: use shared readProjectConfig from test-utils
Address review comment — reuse existing config-reader utility instead of inline helper.
1 parent 9a572eb commit 191f80a

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

integ-tests/add-remove-harness.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
import { createTestProject, exists, runCLI } from '../src/test-utils/index.js';
1+
import { createTestProject, exists, readProjectConfig, runCLI } from '../src/test-utils/index.js';
22
import type { TestProject } from '../src/test-utils/index.js';
33
import { readFile } from 'node:fs/promises';
44
import { join } from 'node:path';
55
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
66

7-
async function readProjectConfig(projectPath: string) {
8-
return JSON.parse(await readFile(join(projectPath, 'agentcore/agentcore.json'), 'utf-8'));
9-
}
10-
117
async function readHarnessSpec(projectPath: string, harnessName: string) {
128
return JSON.parse(await readFile(join(projectPath, `app/${harnessName}/harness.json`), 'utf-8'));
139
}

0 commit comments

Comments
 (0)