forked from okta/okta-auth-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.server.js
30 lines (29 loc) · 872 Bytes
/
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
const SDK_VERSION = require('./package.json').version;
const USER_AGENT = 'okta-auth-js-server/' + SDK_VERSION;
const baseConfig = require('./test/support/jest/jest.config');
const config = Object.assign({}, baseConfig, {
testEnvironment: 'node',
setupFiles: baseConfig.setupFiles.concat([
'<rootDir>/test/support/jest/jest.setup.server.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',
'TokenManager/browser',
'TokenManager/crossTabs'
])
});
module.exports = config;