@arcadialdev/arcality 2.3.2 → 2.3.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcadialdev/arcality",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "AI-powered QA testing tool — Autonomous web testing agent by Arcadial",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -47,8 +47,7 @@
47
47
  "devDependencies": {
48
48
  "@types/figlet": "^1.7.0",
49
49
  "@types/node": "^25.0.9",
50
- "@types/prompts": "^2.4.9",
51
- "tsx": "^4.21.0"
50
+ "@types/prompts": "^2.4.9"
52
51
  },
53
52
  "dependencies": {
54
53
  "@clack/prompts": "^1.0.1",
@@ -61,6 +60,7 @@
61
60
  "js-yaml": "^4.1.1",
62
61
  "node-fetch": "^3.3.2",
63
62
  "prompts": "^2.4.2",
64
- "terminal-image": "^1.1.0"
63
+ "terminal-image": "^1.1.0",
64
+ "tsx": "^4.21.0"
65
65
  }
66
66
  }
@@ -730,11 +730,11 @@ async function main() {
730
730
  }
731
731
  }
732
732
  const configFile = path.join(PROJECT_ROOT, 'playwright.config.ts');
733
-
734
733
  try {
735
- // IMPORTANT: Node 22.12+ breaks Playwright's TS transpiler (pirates.js) with sync require()
736
- // We MUST pass --no-experimental-require-module to let Playwright compile TS safely.
737
- await run("node", ["--no-experimental-require-module", playwrightCli, "test", path.join(PROJECT_ROOT, "tests/_helpers/agentic-runner.spec.ts"), "--headed", `--config=${configFile}`], {
734
+ // IMPORTANT: Playwright's internal `.ts` transpiler intentionally ignores everything inside `node_modules`.
735
+ // Because Arcality tests run from inside `node_modules/@arcadialdev/arcality`, Playwright refuses to compile them.
736
+ // We use `--import tsx` to force Node to transpile TypeScript globally regardless of path.
737
+ await run("node", ["--import", "tsx", playwrightCli, "test", path.join(PROJECT_ROOT, "tests/_helpers/agentic-runner.spec.ts"), "--headed", `--config=${configFile}`], {
738
738
  env: mergedEnv,
739
739
  onStatus: (msg) => s.message(msg)
740
740
  });