Skip to content

Commit 52de78a

Browse files
committed
fix tests
1 parent 79ae59f commit 52de78a

3 files changed

Lines changed: 3 additions & 1686 deletions

File tree

tests/scripts/end_to_end_test_utilities_js.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ def build_js_command(
5959
config: JSTestConfig,
6060
) -> list[str]:
6161
"""Build the codeflash CLI command for JS/TS optimization."""
62-
# Use relative path for python to find the main module
63-
python_path = "../../codeflash/main.py"
64-
if "code_to_optimize_js" in str(cwd):
65-
python_path = "../../../../codeflash/main.py"
62+
# JS projects are at code_to_optimize/js/code_to_optimize_*, which is 3 levels deep
63+
# So we need ../../../codeflash/main.py to get to the root
64+
python_path = "../../../codeflash/main.py"
6665

6766
base_command = [
6867
"uv",

0 commit comments

Comments
 (0)