/
runAll.spec.js.snap
89 lines (84 loc) Β· 2.44 KB
/
runAll.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`runAll should not skip tasks if there are files 1`] = `
"
LOG Preparing... [started]
LOG Preparing... [completed]
LOG Running tasks... [started]
LOG Running tasks for *.js [started]
LOG echo \\"sample\\" [started]
LOG echo \\"sample\\" [completed]
LOG Running tasks for *.js [completed]
LOG Running tasks... [completed]
LOG Applying modifications... [started]
LOG Applying modifications... [completed]
LOG Cleaning up... [started]
LOG Cleaning up... [completed]"
`;
exports[`runAll should resolve the promise with no files 1`] = `
"
LOG No staged files match any of provided globs."
`;
exports[`runAll should skip applying unstaged modifications if there are errors during linting 1`] = `
"
LOG Preparing... [started]
LOG Preparing... [completed]
LOG Running tasks... [started]
LOG Running tasks for *.js [started]
LOG echo \\"sample\\" [started]
LOG echo \\"sample\\" [failed]
LOG β
LOG Running tasks for *.js [failed]
LOG β
LOG Running tasks... [failed]
LOG Applying modifications... [started]
LOG Applying modifications... [skipped]
LOG β Skipped because of errors from tasks.
LOG Reverting to original state... [started]
LOG Reverting to original state... [completed]
LOG Cleaning up... [started]
LOG Cleaning up... [completed]
LOG {
name: 'ListrError',
errors: [
{
privateMsg: '\\\\n\\\\n\\\\nΓ echo found some errors. Please fix them and try committing again.\\\\n\\\\nLinter finished with error',
context: {taskError: true}
}
],
context: {taskError: true}
}"
`;
exports[`runAll should skip tasks and restore state if terminated 1`] = `
"
LOG Preparing... [started]
LOG Preparing... [completed]
LOG Running tasks... [started]
LOG Running tasks for *.js [started]
LOG echo \\"sample\\" [started]
LOG echo \\"sample\\" [failed]
LOG β
LOG Running tasks for *.js [failed]
LOG β
LOG Running tasks... [failed]
LOG Applying modifications... [started]
LOG Applying modifications... [skipped]
LOG β Skipped because of errors from tasks.
LOG Reverting to original state... [started]
LOG Reverting to original state... [completed]
LOG Cleaning up... [started]
LOG Cleaning up... [completed]
LOG {
name: 'ListrError',
errors: [
{
privateMsg: '\\\\n\\\\n\\\\nβΌ echo was terminated with SIGINT',
context: {taskError: true}
}
],
context: {taskError: true}
}"
`;
exports[`runAll should use an injected logger 1`] = `
"
LOG No staged files match any of provided globs."
`;