ccqa 0.1.0 → 0.1.1
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.1",
|
|
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,12 @@ export interface SetupScript {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export function actionsToScript(actions: TraceAction[], title: string, setupScripts?: SetupScript[]): string {
|
|
14
|
-
|
|
15
|
-
const helpersPath = new URL("../runtime/test-helpers.ts", import.meta.url).pathname;
|
|
14
|
+
const helpersImport = "ccqa/test-helpers";
|
|
16
15
|
|
|
17
16
|
const imports = [
|
|
18
17
|
`import { test } from "vitest";`,
|
|
19
18
|
`import { spawnSync } from "node:child_process";`,
|
|
20
|
-
`import { ab, abWait, abAssertTextVisible, abAssertVisible, abAssertNotVisible, abAssertUrl, abAssertEnabled, abAssertDisabled, abAssertChecked, abAssertUnchecked } from ${JSON.stringify(
|
|
19
|
+
`import { ab, abWait, abAssertTextVisible, abAssertVisible, abAssertNotVisible, abAssertUrl, abAssertEnabled, abAssertDisabled, abAssertChecked, abAssertUnchecked } from ${JSON.stringify(helpersImport)};`,
|
|
21
20
|
"",
|
|
22
21
|
`// Single session shared across all tests — reset per run via cookies clear in first test`,
|
|
23
22
|
`process.env.AGENT_BROWSER_SESSION = \`ccqa-run-\${Date.now()}\`;`,
|