-
Notifications
You must be signed in to change notification settings - Fork 265
/
jest.server.js
37 lines (36 loc) · 1.04 KB
/
jest.server.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const SDK_VERSION = require('./package.json').version;
const USER_AGENT = `okta-auth-js/${SDK_VERSION} nodejs/${process.versions.node}`;
const baseConfig = require('./test/support/jest/jest.config.unit');
const config = Object.assign({}, baseConfig, {
testEnvironment: 'node',
setupFiles: baseConfig.setupFiles.concat([
'<rootDir>/test/support/jest/jest.setup.node.js'
]),
globals: Object.assign({}, baseConfig.globals, {
USER_AGENT
}),
testPathIgnorePatterns: baseConfig.testPathIgnorePatterns.concat([
'browserStorage',
'fingerprint',
'renewToken',
'session',
'features/browser',
'OktaAuth/browser',
'oidc/util/browser',
'oidc/util/loginRedirect',
'oidc/parseFromUrl',
'oidc/getWithPopup',
'oidc/getWithRedirect',
'oidc/getWithoutPrompt',
'oidc/renewToken.ts',
'oidc/renewTokens.ts',
'oidc/enrollAuthenticator',
'oidc/dpop',
'TokenManager/browser',
'SyncStorageService',
'LeaderElectionService',
'ServiceManager',
'services/'
])
});
module.exports = config;