Skip to content

Commit

Permalink
Update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
vincanger committed Mar 25, 2024
1 parent 15670c1 commit 316c648
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@
"scripts": {
"e2e:start": "node ci-start-app-and-db.js",
"e2e:start-db": "npm run e2e:cleanup-db && cd ../app && wasp start db",
"e2e:start-app": "npm run e2e:wait-for-db && cd ../app && wasp db migrate-dev --name test-run && cd ../e2e-tests && npm run e2e:playwright:db-name && npm run e2e:playwright:db-setup && cd ../app && wasp start",
"e2e:start-app": "npm run e2e:wait-for-db && cd ../app && wasp db migrate-dev --name test-run && cd ../e2e-tests && npm run e2e:set-db-name && npm run e2e:prisma-db-setup && cd ../app && wasp start",
"e2e:wait-for-db": "npx wait-port 5432",
"e2e:wait-for-app": "npx wait-port 3000",
"e2e:set-db-name": "chmod +x ./setupDatabaseName.sh && ./setupDatabaseName.sh",
"e2e:prisma-db-setup": "mkdir -p prisma && cp ../app/.wasp/out/db/schema.prisma prisma/schema.prisma && prisma generate",
"_comment-on-e2e:cleanup-db": "NOTE: the name of the DB container, e.g. name=^wasp-dev-db-OpenSaaS-, is generated by wasp and will match the name of the app definition in your `main.wasp` file, e.g. `app OpenSaaS { }`",
"e2e:cleanup-db": "(docker container rm $(docker container ls -f name=^wasp-dev-db-OpenSaaS- -q) -f || true) && docker volume rm $(docker volume ls -f name=^wasp-dev-db-OpenSaaS- -q) -f || true",
"e2e:playwright": "playwright test",
"e2e:playwright:ui": "npm run e2e:playwright:db-setup && playwright test --ui",
"e2e:playwright:debug": "DEBUG=pw:webserver npx playwright test",
"e2e:playwright:db-name": "chmod +x ./setupDatabaseName.sh && ./setupDatabaseName.sh",
"e2e:playwright:db-setup": "mkdir -p prisma && cp ../app/.wasp/out/db/schema.prisma prisma/schema.prisma && prisma generate"
"e2e:playwright": "npm run e2e:prisma-db-setup && playwright test",
"e2e:playwright:ui": "playwright test --ui",
"e2e:playwright:debug": "DEBUG=pw:webserver npx playwright test"
},
"author": "",
"license": "ISC",
Expand Down

0 comments on commit 316c648

Please sign in to comment.