mirror of
https://github.com/hanzoai/jose.git
synced 2026-09-24 17:00:01 +00:00
BREAKING CHANGE: createRemoteJWKSet now uses fetch, because of that its Node.js only options.agent property has been removed and new fetch-related options were added
23 lines
484 B
TypeScript
23 lines
484 B
TypeScript
/// <reference types="node"/>
|
|
|
|
import { parseArgs } from 'node:util'
|
|
import * as lib from '../src/index.js'
|
|
|
|
import QUnit from 'qunit'
|
|
|
|
import run from './run.js'
|
|
|
|
const {
|
|
values: { keys },
|
|
} = parseArgs({ options: { keys: { type: 'string' } } })
|
|
|
|
import { stub } from './keyobject-stub.js'
|
|
|
|
const stats: QUnit.DoneDetails = await new Promise(async (resolve) => {
|
|
run(QUnit, lib, keys === 'KeyObject' ? stub : lib, resolve)
|
|
})
|
|
|
|
if (stats?.failed !== 0) {
|
|
process.exitCode = 1
|
|
}
|