Skip to content

Commit

Permalink
fix: start signaling server for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Willenbring committed Aug 10, 2023
1 parent 1207b66 commit 7f7c667
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
"frontend:start": "nx start frontend",
"backend:start": "nx start backend",
"signaling:start": "nx start signaling",
"watch": "nx run-many --targets=build:watch --all",
"frontend:dev": "nx dev frontend",
"backend:dev": "nx dev backend",
"signaling:dev": "nx dev signaling",
"watch": "nx run-many --targets=build:watch --all",
"e2e": "npx playwright test",
"e2e:headed": "npx playwright test --headed",
"e2e:debug": "npx playwright test --debug",
Expand Down
5 changes: 5 additions & 0 deletions packages/signaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@
"license": "ISC",
"scripts": {
"start": "node dist/index.js",
"dev": "nodemon --esm src/index.ts",
"build": "rimraf dist && tsc -b"
},
"dependencies": {
"@shared/configuration": "*",
"@shared/logger": "*",
"dotenv": "^16.0.3",
"peer": "^0.6.1"
},
"devDependencies": {
"nodemon": "^2.0.20",
"ts-node": "^10.9.1"
}
}
6 changes: 6 additions & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ export default defineConfig({
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
},
{
command: "npm run signaling:dev",
port: 3002,
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
},
],
use: {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
Expand Down

0 comments on commit 7f7c667

Please sign in to comment.