Skip to content

Commit 1c18085

Browse files
committed
fix(e2e): update auth context types in e2e tests to use AuthContext for better type safety
1 parent 25eb2a0 commit 1c18085

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

packages/e2e/src/e2e.spec.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
createPaymentDelegationFlowTest,
1919
} from './helper/tests';
2020
import { init } from './init';
21+
import { AuthContext } from './types';
2122

2223
const RPC_OVERRIDE = process.env['LIT_YELLOWSTONE_PRIVATE_RPC_URL'];
2324
if (RPC_OVERRIDE) {
@@ -32,8 +33,8 @@ describe('all', () => {
3233
let ctx: Awaited<ReturnType<typeof init>>;
3334

3435
// Auth contexts for testing
35-
let alicePkpAuthContext: any;
36-
let eveCustomAuthContext: any;
36+
let alicePkpAuthContext: AuthContext;
37+
let eveCustomAuthContext: AuthContext;
3738

3839
beforeAll(async () => {
3940
try {
@@ -150,11 +151,7 @@ describe('all', () => {
150151
ctx.eveViemAccountPkp.pubkey
151152
)());
152153
it('viewPKPsByAuthData', () =>
153-
createViewPKPsByAuthDataTest(
154-
ctx,
155-
() => eveCustomAuthContext,
156-
ctx.eveCustomAuthData
157-
)());
154+
createViewPKPsByAuthDataTest(ctx, () => eveCustomAuthContext)());
158155
it('pkpEncryptDecrypt', () =>
159156
createPkpEncryptDecryptTest(
160157
ctx,

0 commit comments

Comments
 (0)