Skip to content

Commit 2582b1d

Browse files
committed
chore: run puya-ts install test with --ignore-scripts
1 parent e1b9fc8 commit 2582b1d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tests/compile/test_typescript.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,22 @@ def typescript_test_dir(tmp_path_factory: pytest.TempPathFactory) -> Path:
6868
"name": "algokit-test",
6969
"version": "1.0.0",
7070
"dependencies": {
71-
"@algorandfoundation/puya-ts": "~1.0.0-beta.48 <1.0.0",
72-
"@algorandfoundation/algorand-typescript": "~1.0.0-beta.25 <1.0.0"
71+
"@algorandfoundation/puya-ts": "^1.0.1",
72+
"@algorandfoundation/algorand-typescript": "^1.0.1"
7373
}
7474
}"""
7575

7676
package_json_path = test_dir / "package.json"
7777
package_json_path.write_text(package_json_content)
7878

7979
# Execute npm install in the directory
80-
subprocess.run([_get_npm_command(), "install"], cwd=test_dir, check=True, capture_output=True, text=True)
80+
result = subprocess.run(
81+
[_get_npm_command(), "install", "--ignore-scripts"], cwd=test_dir, capture_output=True, text=True, check=False
82+
)
83+
if result.returncode != 0:
84+
raise RuntimeError(
85+
f"npm install failed with exit code {result.returncode}\nstdout: {result.stdout}\nstderr: {result.stderr}"
86+
)
8187

8288
return test_dir
8389

0 commit comments

Comments
 (0)