-
-
Notifications
You must be signed in to change notification settings - Fork 412
/
index.spec.js.snap
59 lines (52 loc) · 1.34 KB
/
index.spec.js.snap
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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`lintStaged should load config file when specified 1`] = `
"
LOG Running lint-staged with the following config:
LOG {
linters: {
'*': 'mytask'
},
concurrent: true,
chunkSize: 9007199254740991,
globOptions: {
matchBase: true,
dot: true
},
ignore: [],
subTaskConcurrency: 1,
renderer: 'verbose'
}"
`;
exports[`lintStaged should not output config in normal mode 1`] = `""`;
exports[`lintStaged should output config in debug mode 1`] = `
"
LOG Running lint-staged with the following config:
LOG {
linters: {
'*': 'mytask'
},
concurrent: true,
chunkSize: 9007199254740991,
globOptions: {
matchBase: true,
dot: true
},
ignore: [],
subTaskConcurrency: 1,
renderer: 'verbose'
}"
`;
exports[`lintStaged should print helpful error message when config file is not found 1`] = `
"
ERROR Config could not be found.
ERROR
ERROR Please make sure you have created it correctly.
See https://github.com/okonet/lint-staged#configuration."
`;
exports[`lintStaged should print helpful error message when explicit config file is not found 1`] = `
ERROR Could not parse lint-staged config.
Error: ENOENT: no such file or directory, open 'fake-config-file.yml'
ERROR
ERROR Please make sure you have created it correctly.
See https://github.com/okonet/lint-staged#configuration.
`;