-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwallaby.js
More file actions
80 lines (70 loc) · 1.51 KB
/
Copy pathwallaby.js
File metadata and controls
80 lines (70 loc) · 1.51 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
70
71
72
73
74
75
76
77
78
79
80
module.exports = (wallaby) => ({
files: [
'test/test_helper.js',
'test/helpers/**/*.js',
'src/**/*.key',
'src/**/*.crt',
'src/**/*.csr',
'static/favicon.ico',
'static/manifest.json',
'static/**/*.js',
'static/**/*.css',
'static/**/*.json',
'src/**/*.json',
'lang/locales/json/*.json',
{ pattern: 'test/**/*.spec.js', ignore: true },
{ pattern: 'src/**/*.spec.js', ignore: true },
'src/**/*.js*',
'src/**/*.scss',
'src/**/*.png',
'src/**/*.svg',
'node_modules/bytesize-icons/dist/icons/*.svg',
'src/**/*.css',
'src/**/*.less',
],
filesWithNoCoverageCalculated: [
'src/**/*.dev.js',
'test/test_helper.js',
'*.scss',
'*.css',
'*.less',
'src/ssr/services/bootstrap.js',
'src/ssr/middlewares/http2Push.js',
'static/**',
],
hints: {
ignoreCoverage: /istanbul ignore next/,
},
tests: [
{ pattern: 'node_modules/*', ignore: true, instrument: false },
'src/**/*.spec.js*',
'test/**/*.spec.js*',
],
compilers: {
'**/*.js': wallaby.compilers.babel(),
},
preprocessors: {
'**/*.png': (file, done) => {
done('');
},
'**/*.svg': (file, done) => {
done('');
},
},
setup: (target) => {
target.testFramework.configure({
moduleNameMapper: {
'^.+\\.(jpg|jpeg|png|gif|svg)$': './test/fileMock.js',
},
});
},
env: {
type: 'node',
},
workers: {
initial: 1,
regular: 1,
recycle: true,
},
testFramework: 'jest',
});