Skip to content

Commit

Permalink
test(SLB-354): test command chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Aug 13, 2024
1 parent 659a980 commit 635a9fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions packages/npm/@amazeelabs/image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
"build": "pnpm prep",
"test:static": "tsc --noEmit && eslint \"**/*.{ts,tsx,js,jsx}\" --ignore-path=\"./.eslintignore\"",
"test:unit": "vitest run",
"test:integration": "playwright test",
"test:integration": "pnpm test:build && pnpm playwright test",
"test:cmd": "cd test && ../node_modules/waku/cli.js",
"test:dev": "pnpm test:cmd dev",
"test:build": "pnpm test:cmd build",
"test:start": "pnpm start-test test:dam http://localhost:8889/goats.jpg test:build && pnpm test:cmd start",
"test:build:waku": "pnpm test:cmd build",
"test:build": "pnpm start-test test:dam http://localhost:8889/goats.jpg test:build:waku",
"test:start": "pnpm test:cmd start",
"test:dam": "pnpm serve -p 8889 test/public",
"test:all": "pnpm test:unit && pnpm test:static && pnpm test:integration"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/npm/@amazeelabs/image/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: [
{
command: 'pnpm test:start',
url: 'http://127.0.0.1:8080/server',
command: 'pnpm test:dam',
url: 'http://127.0.0.1:8889/goats.jpg',
reuseExistingServer: !process.env.CI,
},
{
command: 'pnpm test:dam',
url: 'http://127.0.0.1:8889/goats.jpg',
command: 'pnpm test:start',
url: 'http://127.0.0.1:8080/client',
reuseExistingServer: !process.env.CI,
},
],
Expand Down

0 comments on commit 635a9fc

Please sign in to comment.