Skip to content

Commit 21c6b5b

Browse files
authoredMar 6, 2025··
test(auth-js): use node 20.x in CI (#1008)
1 parent 0c24e85 commit 21c6b5b

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed
 

‎.github/workflows/ci-auth-js.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 18.x
22+
node-version: 20.x
2323
- run: yarn install --frozen-lockfile
2424
- run: yarn build
2525
- run: yarn test

‎packages/auth-js/test/index.test.ts

-5
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@ import type { Adapter } from '@auth/core/adapters'
33
import Credentials from '@auth/core/providers/credentials'
44
import { Hono } from 'hono'
55
import { describe, expect, it, vi } from 'vitest'
6-
import { webcrypto } from 'node:crypto'
76
import type { AuthConfig } from '../src'
87
import { authHandler, verifyAuth, initAuthConfig, reqWithEnvUrl } from '../src'
98

10-
// @ts-expect-error - global crypto
11-
//needed for node 18 and below but should work in node 20 and above
12-
global.crypto = webcrypto
13-
149
describe('Config', () => {
1510
it('Should return 500 if AUTH_SECRET is missing', async () => {
1611
globalThis.process.env = { AUTH_SECRET: '' }

0 commit comments

Comments
 (0)
Please sign in to comment.