Skip to content

Commit 9f014b1

Browse files
committed
fix tests
1 parent a4a0741 commit 9f014b1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/access-token-jwt/test/discovery.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ describe('discover', () => {
173173
it('is rejected with Error when no absolute URL is provided', async () => {
174174
await expect(
175175
discover('op.example.com/.well-known/foobar')
176-
).rejects.toThrowError('Invalid URL: op.example.com/.well-known/foobar');
176+
).rejects.toThrowError('Invalid URL');
177177
});
178178

179179
it('is rejected when .well-known Metadata does not provide the required "issuer" property', async () => {

packages/oauth2-bearer/jest.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = {
22
preset: 'ts-jest',
3-
rootDir: '<rootDir>../../',
43
reporters: [
54
'default',
65
[
@@ -19,4 +18,11 @@ module.exports = {
1918
statements: 100,
2019
},
2120
},
21+
globals: {
22+
'ts-jest': {
23+
tsconfig: {
24+
module: 'commonjs',
25+
},
26+
},
27+
},
2228
};

0 commit comments

Comments
 (0)