Skip to content

Commit

Permalink
fix: update Playwright config to set working directory for the web se…
Browse files Browse the repository at this point in the history
…rver
  • Loading branch information
elikoga committed Jan 25, 2025
1 parent b52c472 commit 9c6c45d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let command = `nix run .#thymis-controller`;

if (process.env.THYMIS_DEV_SHELL) {
console.log('Using poetry run uvicorn reload');
command = `cd ../controller && poetry run uvicorn thymis_controller.main:app --reload`;
command = `poetry run uvicorn thymis_controller.main:app --reload`;
}

const runInShell = (cmd) => `sh -c '${cmd}'`;
Expand Down Expand Up @@ -44,6 +44,7 @@ const config: PlaywrightTestConfig = {
retries: 2,
webServer: {
command: commandFrame(command),
cwd: `../controller`,
port: 8000,
stdout: 'pipe'
},
Expand Down

0 comments on commit 9c6c45d

Please sign in to comment.