This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathaw.config.js
77 lines (76 loc) · 1.94 KB
/
aw.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
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
70
71
72
73
74
75
76
77
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/internal-aw-tests/button-mock.js",
],
],
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": [
"[email protected]/example-*(protractor|puppeteer|webpack-dev-server)",
"[email protected]/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-*/**",
"!**/examples/chrome-esm/**",
],
"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"],
transform: {
exclude: ["**/chrome-esm/**"],
},
};