@checksum-ai/runtime 4.4.2 → 4.5.0-beta.2
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/.env +1 -1
- package/README.md +3 -3
- package/checksum-root/checksum.config.ts +3 -2
- package/checksum-root/eslint.config.js +10 -1
- package/cli.js +41 -41
- package/package.json +1 -1
package/.env
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
CHECKSUM_RUNTIME_BUILD_TIME=2026-06-
|
|
1
|
+
CHECKSUM_RUNTIME_BUILD_TIME=2026-06-25T23:27:58.381Z
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
1. Install the package using `npm install -D checksumai` or `yarn add checksumai -D`.
|
|
6
6
|
2. Navigate to the directory where you want to initialize the Checksum tests folder and run `npx checksumai init`.
|
|
7
7
|
3. In the newly created `checksum` folder:
|
|
8
|
-
1.
|
|
8
|
+
1. Define `CHECKSUM_API_KEY` and `BASE_URL` in `checksum/.env` or your shell; the starter config reads `process.env.CHECKSUM_API_KEY` and `process.env.BASE_URL!`.
|
|
9
9
|
2. Update `login.ts` with your Playwright login flow. See the Login Function section below for the current params-object API.
|
|
10
10
|
3. Review the starter examples in `checksum/tests/examples/example.checksum.spec.ts` and `checksum/tests/examples/example.checksum.md`.
|
|
11
11
|
4. Re-running `npx checksumai init` later backfills any missing starter files without overwriting files you already customized.
|
|
@@ -91,10 +91,10 @@ Alongside standard test run configurations found in `playwright.config.ts`, use
|
|
|
91
91
|
runMode: RunMode.Normal,
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* Define CHECKSUM_API_KEY in checksum/.env or your shell.
|
|
95
95
|
* You can find it in https://app.checksum.ai/#/settings/
|
|
96
96
|
*/
|
|
97
|
-
apiKey:
|
|
97
|
+
apiKey: process.env.CHECKSUM_API_KEY,
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* Define your test run environments and test users within each environment.
|
|
@@ -9,9 +9,10 @@ export default getChecksumConfig({
|
|
|
9
9
|
runMode: RunMode.Normal,
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Define CHECKSUM_API_KEY in checksum/.env or your shell.
|
|
13
|
+
* You can find it in https://app.checksum.ai/#/settings/
|
|
13
14
|
*/
|
|
14
|
-
apiKey:
|
|
15
|
+
apiKey: process.env.CHECKSUM_API_KEY,
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* Define your test run environments and test users within each environment.
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
// ESLint 9+ flat config for Checksum Playwright tests
|
|
3
3
|
// Minimal and modern per typescript-eslint Quickstart + Playwright recommended
|
|
4
4
|
// Dev dependencies to add:
|
|
5
|
-
// npm i -D eslint @eslint/js typescript typescript-eslint @typescript-eslint/eslint-plugin eslint-plugin-playwright
|
|
5
|
+
// npm i -D eslint @eslint/js typescript typescript-eslint @typescript-eslint/eslint-plugin eslint-plugin-playwright @stylistic/eslint-plugin
|
|
6
6
|
|
|
7
7
|
import tseslint from "typescript-eslint";
|
|
8
|
+
import stylistic from "@stylistic/eslint-plugin";
|
|
8
9
|
|
|
9
10
|
export default tseslint.config(
|
|
10
11
|
// Project-specific options for typed linting
|
|
@@ -19,6 +20,7 @@ export default tseslint.config(
|
|
|
19
20
|
},
|
|
20
21
|
plugins: {
|
|
21
22
|
"@typescript-eslint": tseslint.plugin,
|
|
23
|
+
"@stylistic": stylistic,
|
|
22
24
|
},
|
|
23
25
|
rules: {
|
|
24
26
|
"@typescript-eslint/no-floating-promises": "error",
|
|
@@ -28,6 +30,13 @@ export default tseslint.config(
|
|
|
28
30
|
// lint if it (or any `eval` / `require`) is left in a committed test.
|
|
29
31
|
"no-eval": "error",
|
|
30
32
|
"@typescript-eslint/no-require-imports": "error",
|
|
33
|
+
// Formatting — kept intentionally minimal: only the two rules that caused
|
|
34
|
+
// real heal churn (single↔double quote flips, missing/extra semicolons).
|
|
35
|
+
// Auto-fixed by `eslint --fix`, so an agent's edit is normalized to this
|
|
36
|
+
// style instead of reflowing the file. `avoidEscape` keeps single quotes
|
|
37
|
+
// when the string contains a double quote (no ugly escaping).
|
|
38
|
+
"@stylistic/quotes": ["error", "double", { avoidEscape: true }],
|
|
39
|
+
"@stylistic/semi": ["error", "always"],
|
|
31
40
|
},
|
|
32
41
|
},
|
|
33
42
|
// Ignores
|