Skip to content

Commit b68cd43

Browse files
authored
Merge pull request #871 from LIT-Protocol/feature/jss-43-a-script-to-test-published-sdk
feat(e2e): add script to test published packages with e2e tests
2 parents ed0cc6f + 1fb7061 commit b68cd43

File tree

3 files changed

+405
-0
lines changed

3 files changed

+405
-0
lines changed

e2e/package.json

Lines changed: 1 addition & 0 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": [

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)