ccqa 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccqa",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Browser test recorder powered by Claude Code and agent-browser",
|
|
6
6
|
"bin": {
|
|
7
7
|
"ccqa": "./bin/ccqa.ts"
|
|
8
8
|
},
|
|
9
|
+
"exports": {
|
|
10
|
+
"./test-helpers": "./src/runtime/test-helpers.ts"
|
|
11
|
+
},
|
|
9
12
|
"files": [
|
|
10
13
|
"bin/",
|
|
11
14
|
"src/"
|
|
@@ -11,13 +11,10 @@ export interface SetupScript {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export function actionsToScript(actions: TraceAction[], title: string, setupScripts?: SetupScript[]): string {
|
|
14
|
-
// Resolve the helpers path relative to this file so it works from any cwd
|
|
15
|
-
const helpersPath = new URL("../runtime/test-helpers.ts", import.meta.url).pathname;
|
|
16
|
-
|
|
17
14
|
const imports = [
|
|
18
15
|
`import { test } from "vitest";`,
|
|
19
16
|
`import { spawnSync } from "node:child_process";`,
|
|
20
|
-
`import { ab, abWait, abAssertTextVisible, abAssertVisible, abAssertNotVisible, abAssertUrl, abAssertEnabled, abAssertDisabled, abAssertChecked, abAssertUnchecked } from
|
|
17
|
+
`import { ab, abWait, abAssertTextVisible, abAssertVisible, abAssertNotVisible, abAssertUrl, abAssertEnabled, abAssertDisabled, abAssertChecked, abAssertUnchecked } from "ccqa/test-helpers";`,
|
|
21
18
|
"",
|
|
22
19
|
`// Single session shared across all tests — reset per run via cookies clear in first test`,
|
|
23
20
|
`process.env.AGENT_BROWSER_SESSION = \`ccqa-run-\${Date.now()}\`;`,
|