Skip to content

Commit d71367a

Browse files
committed
feat(e2e): add script to test published packages with e2e tests
1 parent ed0cc6f commit d71367a

File tree

3 files changed

+396
-3
lines changed

3 files changed

+396
-3
lines changed

e2e/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"build:esm": "mkdir -p dist-esm && bun build src/index.ts --outdir dist-esm --format esm --target node --external '@lit-protocol/*' && mv dist-esm/index.js dist/index.mjs && rm -rf dist-esm",
2222
"prepublishOnly": "bun run build",
2323
"test": "bun test",
24+
"test:e2e": "dotenvx run --env-file=../.env -- bun test ./src/e2e.spec.ts --timeout 50000000 -t",
2425
"test:watch": "bun test --watch"
2526
},
2627
"keywords": [
@@ -43,9 +44,9 @@
4344
"typescript": "^5.0.0"
4445
},
4546
"peerDependencies": {
46-
"@lit-protocol/auth": "*",
47-
"@lit-protocol/lit-client": "*",
48-
"@lit-protocol/networks": "*"
47+
"@lit-protocol/auth": "8.0.0-prealpha-886.4",
48+
"@lit-protocol/lit-client": "8.0.0-prealpha-886.4",
49+
"@lit-protocol/networks": "8.0.0-prealpha-886.4"
4950
},
5051
"engines": {
5152
"node": ">=18.0.0"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"unlink-all": "for dir in packages/*/; do echo \"Unlinking in $dir\"; (cd \"$dir\" && bun unlink) || { echo \"ERROR: Failed to unlink in $dir\"; exit 1; }; done",
2626
"auth-services": "cd packages/auth-services && bun run start",
2727
"test:e2e": "bun test ./e2e/src/e2e.spec.ts -t",
28+
"test:e2e:published": "node test-e2e-published.mjs",
2829
"artillery:init": "bun run ./e2e/artillery/src/init.ts",
2930
"artillery:balance-status": "LOG_LEVEL=silent bun run ./e2e/artillery/src/balance-status.ts",
3031
"artillery:pkp-sign": "DEBUG_HTTP=true LOG_LEVEL=silent dotenvx run --env-file=.env -- sh -c 'artillery run ./e2e/artillery/configs/pkp-sign.yml ${ARTILLERY_KEY:+--record --key $ARTILLERY_KEY}'",

0 commit comments

Comments
 (0)