forked from anchorcms/anchor-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
39 lines (29 loc) · 852 Bytes
/
jest.config.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
38
39
'use strict';
/*
global module,
exports
*/
/**
* Provides configuration to Jest
*/
module.exports = {
// set the verbose mode to the value of the DEBUG environment variable
verbose: !!process.env.DEBUG || !!process.env.CI,
// Coverage won't be working, since we're not testing JS here
collectCoverage: false,
globals: {
// the base URL AnchorCMS is running at
__BASE_URL__: 'http://localhost',
// set the DEBUG environment variable
__DEBUG__: !!process.env.DEBUG
},
globalSetup: './test/setup.js',
globalTeardown: './test/teardown.js',
testEnvironment: './test/environment.js',
// do not send notifications if the tests are carried out in a CI environment
notify: !process.env.CI,
// only match tests within the integration test folder
testMatch: [
'**/test/integration/**/*.js'
]
};