Skip to content

Commit 715c4cc

Browse files
authored
Merge pull request #984 from LIT-Protocol/feat/naga-test-upgrade-30-10-2025
Feat/naga test upgrade 30 10 2025
2 parents 19ee43d + f109877 commit 715c4cc

File tree

15 files changed

+2212
-1022
lines changed

15 files changed

+2212
-1022
lines changed

.changeset/salty-hands-laugh.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@lit-protocol/contracts': patch
3+
'@lit-protocol/e2e': patch
4+
'@lit-protocol/auth': patch
5+
'@lit-protocol/auth-services': patch
6+
'@lit-protocol/lit-client': patch
7+
'@lit-protocol/networks': patch
8+
---
9+
10+
update naga-test contract addresses. Users are expected to update and reinstall the SDK to continue using naga-test.

.github/workflows/e2e-naga.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ jobs:
5656
# - environment: naga-staging
5757
# network: naga-staging
5858
# privateKey: LIVE_MASTER_ACCOUNT_NAGA_STAGING
59-
# - environment: naga-test
60-
# network: naga-test
61-
# privateKey: LIVE_MASTER_ACCOUNT_NAGA_TEST
59+
- environment: naga-test
60+
network: naga-test
61+
privateKey: LIVE_MASTER_ACCOUNT_NAGA_TEST
6262
env:
6363
LOG_LEVEL: debug2
6464
LIVE_MASTER_ACCOUNT: ${{ secrets[matrix.privateKey] }}

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,31 @@ LOCAL_MASTER_ACCOUNT=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf
5555
NETWORK=<network-name> pnpm run test:e2e all
5656
```
5757

58+
### Target a specific spec
59+
60+
Use `test:target` when you only need to exercise one file:
61+
62+
```bash
63+
pnpm run test:target packages/e2e/src/tickets/delegation.spec.ts
64+
```
65+
66+
Append additional Jest flags after the path if you need finer filtering.
67+
68+
## QA Starter Kit workflow
69+
70+
When you need to validate SDK integrations against backend or node features, lean on the [QA Starter Kit](https://github.com/LIT-Protocol/QA-kit). That repo installs published packages, so it mirrors how downstream teams will consume the SDK.
71+
72+
1. The node team opens a feature branch for their service.
73+
2. Create a matching SDK branch and build the integration for that node change.
74+
3. Publish a snapshot (prerelease) of the SDK packages so the QA Starter Kit can install them from npm.
75+
4. Point the QA Starter Kit to that snapshot to perform the e2e flow before promoting the release.
76+
77+
This keeps QA aligned with the packages that will actually ship and avoids the drift that comes with local linking.
78+
5879
# Running it against a local network
5980

81+
Generate a fresh `networkContext.json` for local nodes with `pnpm run gen:local-network-context` before running the e2e tests against the `naga-local` local network.
82+
6083
## Required Environment Variables
6184

6285
```bash
@@ -132,6 +155,18 @@ This command must be run manually and is NOT part of the build process, as it re
132155
DEV_BRANCH=develop GH_API_KEY=github_pat_xxx pnpm run sync:contracts
133156
```
134157

158+
## Keeping the docs changelog in sync with the public site
159+
160+
Use the `sync:docs-changelog` script to refresh the changelog that powers [naga.developer.litprotocol.com/changelog](https://naga.developer.litprotocol.com/changelog).
161+
162+
```shell
163+
pnpm run sync:docs-changelog
164+
```
165+
166+
> Note: we currently run this manually after the Changeset PR lands in the `naga` main branch, though we expect to automate it in CI in the future.
167+
168+
The script collates the latest entries from `packages/*/CHANGELOG.md` and rewrites the target `changelog.mdx`. Commit and publish the regenerated file in the docs repo so the public changelog stays current.
169+
135170
---
136171

137172
# Legacy Documentation for V7 and Earlier

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"lint": "npx nx run-many --target=lint --all",
1313
"lint:fix": "npx nx run-many --target=lint --all -- --fix",
1414
"format:check": "npx nx format:check --all",
15-
"test:e2e": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 -t",
16-
"test:custom": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000",
15+
"test:e2e": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 --runTestsByPath packages/e2e/src/e2e.spec.ts",
16+
"test:target": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000",
1717
"test:e2e:ci": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} npx jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 --runTestsByPath",
1818
"test:health": "LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- tsx packages/e2e/src/health/index.ts",
1919
"ci:health": "LOG_LEVEL=${LOG_LEVEL:-silent} tsx packages/e2e/src/health/index.ts"

0 commit comments

Comments
 (0)