Skip to content

Commit 28afe72

Browse files
committed
fix(e2e): test should work again
1 parent 0dad0a8 commit 28afe72

File tree

5 files changed

+18
-34617
lines changed

5 files changed

+18
-34617
lines changed

e2e/src/helper/auth-contexts.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { init } from '../init';
22

3-
import { hexToBigInt, keccak256, toBytes } from 'viem';
4-
53
/**
64
* Creates a PKP authentication context
75
*/

jest.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { getJestProjects } from '@nx/jest';
1+
import { getJestProjectsAsync } from '@nx/jest';
22

3-
export default {
4-
projects: getJestProjects(),
5-
};
3+
export default async () => ({
4+
projects: await getJestProjectsAsync(),
5+
});

package.json

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"gen:local-network-context": "dotenvx run --env-file=.env -- node --conditions=import --import tsx packages/networks/src/networks/vNaga/shared/scripts/generate-abi-signatures.ts",
2020
"prettier": "npx nx format:write --all",
2121
"format:check": "npx nx format:check --all",
22-
"test:e2e": "npx jest --clearCache && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 -t",
22+
"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",
2323
"artillery:init": "dotenvx run --env-file=.env -- tsx e2e/artillery/src/init.ts",
2424
"artillery:balance-status": "LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- tsx e2e/artillery/src/balance-status.ts",
2525
"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}'",
@@ -34,6 +34,7 @@
3434
"@babel/preset-env": "^7.28.3",
3535
"@babel/preset-typescript": "^7.27.1",
3636
"@dotenvx/dotenvx": "^1.6.4",
37+
"@ethersproject/contracts": "5.8.0",
3738
"@lit-protocol/contracts": "^0.5.0",
3839
"@lit-protocol/nacl": "7.1.1",
3940
"@lit-protocol/uint8arrays": "7.1.1",
@@ -69,17 +70,12 @@
6970
},
7071
"devDependencies": {
7172
"@changesets/cli": "^2.29.4",
72-
"@nx/devkit": "17.3.0",
73-
"@nx/esbuild": "17.3.0",
74-
"@nx/eslint-plugin": "17.3.0",
75-
"@nx/jest": "17.3.0",
76-
"@nx/js": "17.3.0",
77-
"@nx/linter": "17.3.0",
78-
"@nx/next": "17.3.0",
79-
"@nx/node": "17.3.0",
80-
"@nx/plugin": "17.3.0",
81-
"@nx/react": "17.3.0",
82-
"@nx/web": "17.3.0",
73+
"@nx/esbuild": "21.2.1",
74+
"@nx/eslint-plugin": "21.2.1",
75+
"@nx/jest": "21.2.1",
76+
"@nx/js": "21.2.1",
77+
"@nx/node": "21.2.1",
78+
"@nx/plugin": "21.2.1",
8379
"@solana/web3.js": "1.95.3",
8480
"@types/depd": "^1.1.36",
8581
"@types/events": "^3.0.3",
@@ -109,13 +105,14 @@
109105
"live-server": "^1.2.2",
110106
"node-fetch": "^2.6.1",
111107
"node-localstorage": "^3.0.5",
112-
"nx": "17.3.0",
108+
"nx": "21.2.1",
113109
"path": "^0.12.7",
114110
"pino-pretty": "^13.0.0",
115111
"prettier": "^2.6.2",
116112
"react": "^19.1.0",
117113
"rimraf": "^6.0.1",
118114
"ts-jest": "29.2.5",
115+
"ts-node": "^10.9.2",
119116
"tsx": "^4.20.5",
120117
"typedoc": "^0.28.12",
121118
"typescript": "5.8.3"

packages/networks/src/networks/vNaga/shared/managers/contract-manager/createContractsManager.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const createContractsManager = <T, M>(
100100
contractData.PKPNFT.methods.safeTransferFrom,
101101
...contractData.PKPNFT.events,
102102
],
103-
client: { public: publicClient, wallet: walletClient },
103+
client: { public: publicClientForContract, wallet: walletClientForContract },
104104
});
105105

106106
const pkpHelperContract = getContract({
@@ -151,7 +151,7 @@ export const createContractsManager = <T, M>(
151151
contractData.PKPPermissions.methods.getTokenIdsForAuthMethod,
152152
...contractData.PKPPermissions.events,
153153
],
154-
client: { public: publicClient, wallet: walletClient },
154+
client: { public: publicClientForContract, wallet: walletClientForContract },
155155
});
156156

157157
const pubkeyRouterContract = getContract({
@@ -179,7 +179,7 @@ export const createContractsManager = <T, M>(
179179
contractData.Ledger.methods.withdraw,
180180
...contractData.Ledger.events,
181181
],
182-
client: { public: publicClient, wallet: walletClient },
182+
client: { public: publicClientForContract, wallet: walletClientForContract },
183183
});
184184

185185
const paymentDelegationContract = getContract({
@@ -196,7 +196,7 @@ export const createContractsManager = <T, M>(
196196
contractData.PaymentDelegation.methods.undelegatePaymentsBatch,
197197
...contractData.PaymentDelegation.events,
198198
],
199-
client: { public: publicClient, wallet: walletClient },
199+
client: { public: publicClientForContract, wallet: walletClientForContract },
200200
});
201201

202202
// ---------- End of all your contracts ----------

0 commit comments

Comments
 (0)