Skip to content

Commit a658eb4

Browse files
committed
chore: fix test
1 parent 8c7fb62 commit a658eb4

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on: [push, pull_request]
55
jobs:
66
test:
77
runs-on: ubuntu-latest
8+
timeout-minutes: 60
89

910
services:
1011
docker:
@@ -22,8 +23,13 @@ jobs:
2223
- name: Set up Node.js
2324
uses: actions/setup-node@v3
2425
with:
25-
node-version: '16' # Specify your Node.js version here
26+
node-version: '18' # Specify your Node.js version here
27+
28+
- name: Set up pnpm
29+
run: |
30+
corepack enable
31+
corepack prepare pnpm@7.28.0 --activate
2632
- name: Install dependencies
27-
run: npm install
33+
run: pnpm install --frozen-lockfile
2834
- name: Run integration tests
29-
run: npm test # Make sure this command runs your integration tests
35+
run: pnpm test # Make sure this command runs your integration tests

__test__/index.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ function buildAuthorizerCliArgs(): { args: string[]; clientId: string } {
3030
const clientId = randomUUID();
3131
const clientSecret = randomUUID();
3232
const jwtSecret = randomUUID();
33-
const customAccessTokenScript =
34-
"function(user,tokenPayload){var data = tokenPayload;data.extra = {'x-extra-id': user.id};return data;}";
3533

3634
const args = [
3735
'--client-id',
@@ -50,8 +48,6 @@ function buildAuthorizerCliArgs(): { args: string[]; clientId: string } {
5048
'sqlite',
5149
'--database-url',
5250
'/tmp/authorizer.db',
53-
'--custom-access-token-script',
54-
customAccessTokenScript,
5551
'--enable-playground=false',
5652
'--log-level',
5753
'debug',

0 commit comments

Comments
 (0)