Skip to content

Commit

Permalink
test: skip tap fetch tests in CITGM
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Nov 18, 2022
1 parent 136f27d commit a2d0ae2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tap/run.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import type QUnit from 'qunit'
import type * as jose from '../src/index.js'

const skipFetch =
// @ts-ignore
typeof fetch === 'undefined' || (typeof process !== 'undefined' && 'CITGM' in process.env)

export default async (
QUnit: QUnit,
lib: typeof jose,
Expand All @@ -18,7 +22,7 @@ export default async (
import('./generate_options.js'),
import('./hmac.js'),
import('./jwk.js'),
typeof fetch !== 'undefined' ? import('./jwks.js') : import('./noop.js'),
!skipFetch ? import('./jwks.js') : import('./noop.js'),
import('./jws.js'),
import('./pbes2.js'),
import('./pem.js'),
Expand Down

0 comments on commit a2d0ae2

Please sign in to comment.