mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-02 22:03:07 +00:00
* feat(browser-tests): simplify, refactor, update dockerized browser node * Update packages/browser-tests/web/index.ts * fix: remove comments and console.logs from tests * fix: add temporary logging * fix: debugging static sharding * fix: replace console with logger * fix: remove use of any * fix: log dial error * fix: replace any with libp2p options * fix: remove unused logic around sourcing address.env * fix: uncomment log * fix: add more logging and fix tests * feat: add types for test-config * fix: add types to server.ts * fix: remove more uses of any * fix: remove use of any in endpoint handlers
43 lines
1.5 KiB
JSON
43 lines
1.5 KiB
JSON
{
|
|
"name": "@waku/browser-tests",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"start": "npm run start:server",
|
|
"start:server": "PORT=8080 node ./dist/src/server.js",
|
|
"test": "npx playwright test tests/server.spec.ts --reporter=line",
|
|
"test:all": "npx playwright test --reporter=line",
|
|
"test:server": "npx playwright test tests/server.spec.ts --reporter=line",
|
|
"test:integration": "npx playwright test tests/integration.spec.ts --reporter=line",
|
|
"test:e2e": "npx playwright test tests/e2e.spec.ts --reporter=line",
|
|
"build:server": "tsc -p tsconfig.json",
|
|
"build:web": "esbuild web/index.ts --bundle --format=esm --platform=browser --outdir=dist/web && cp web/index.html dist/web/index.html",
|
|
"build": "npm-run-all -s build:server build:web",
|
|
"docker:build": "docker build -t waku-browser-tests:local . && docker tag waku-browser-tests:local waku-browser-tests:latest"
|
|
},
|
|
"dependencies": {
|
|
"@playwright/test": "^1.51.1",
|
|
"@waku/discovery": "^0.0.11",
|
|
"@waku/interfaces": "^0.0.33",
|
|
"@waku/sdk": "^0.0.34",
|
|
"@waku/utils": "0.0.27",
|
|
"cors": "^2.8.5",
|
|
"dotenv-flow": "^0.4.0",
|
|
"express": "^4.21.2",
|
|
"filter-obj": "^2.0.2",
|
|
"it-first": "^3.0.9"
|
|
},
|
|
"devDependencies": {
|
|
"@types/cors": "^2.8.15",
|
|
"@types/express": "^4.17.21",
|
|
"@types/node": "^20.10.0",
|
|
"@waku/tests": "*",
|
|
"axios": "^1.8.4",
|
|
"esbuild": "^0.21.5",
|
|
"npm-run-all": "^4.1.5",
|
|
"testcontainers": "^10.9.0",
|
|
"typescript": "5.8.3"
|
|
}
|
|
}
|