forked from qlik-oss/after-work.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaw.config.js
More file actions
69 lines (68 loc) · 1.83 KB
/
aw.config.js
File metadata and controls
69 lines (68 loc) · 1.83 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
const cmd = process.argv.slice(2).shift();
module.exports = {
coverage: true,
url: 'http://localhost:9677/examples/index.html',
mocks: [
['**/*.{scss,less,css,html}'],
['./foobar-virtual.html', '"<div>hello world</div>"'],
['mocked-special', './examples/react/test/button-mock.js'],
['bar', () => {}],
],
nyc: {
exclude: [
'**/*.html',
'**/*.spec.*',
'**/cli/src/index.js',
'**/transform/src/index.js',
'**/browser-shim.js',
'**/commands/aw',
'**/examples/main.js',
'**/examples/react/src/full-match.js',
],
},
mocha: {
reporter: 'spec',
},
// Protractor mochaOpts
mochaOpts: {
reporterOptions: {
name: '@after-work.js',
version: 'next',
},
},
'transform.typescript.babelOptions': {
presets: [
[
'@babel/preset-env',
{
targets: {
browsers: ['last 2 versions', 'safari >= 7'],
node: 'current',
},
modules: cmd !== 'chrome' ? 'commonjs' : false,
},
],
],
},
'filter.node.packages': [
'!@after-work.js/example-*(protractor|puppeteer|webpack-dev-server)',
'!@after-work.js/example-chrome-*',
],
'filter.node.files': [
'!**/commands/protractor/src/config.js',
'!**/examples/chrome-*/**',
'!**/examples/protractor/**',
'!**/examples/puppeteer/**',
'!**/examples/webpack-dev-server/**',
],
'filter.chrome.packages': ['@after-work.js/example-chrome-*'],
'filter.chrome.files': ['**/examples/chrome-*/**'],
'filter.puppeteer.packages': ['@after-work.js/example-puppeteer'],
'filter.puppeteer.files': ['**/examples/puppeteer/**'],
'filter.protractor.files': ['**/examples/protractor/**'],
artifactsPath: 'test/__artifacts__',
http: {
port: 9677,
},
specs: ['./examples/protractor/test/hello.spec.js'],
};