Files
Filip Skokan eebee55a01 refactor: restructure src/lib and src/runtime now that runtime is fixed
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
2025-02-22 15:16:04 +01:00

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
}