/
validateCLIOptions.test.js.snap
42 lines (38 loc) · 1.29 KB
/
validateCLIOptions.test.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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`does not show suggestion when unrecognized cli param length <= 1 1`] = `
"<red><bold><bold>●</><bold> Unrecognized CLI Parameter</>:</>
<red></>
<red> Unrecognized option <bold>\\"l\\"</>.</>
<red></>
<red> <bold>CLI Options Documentation</>:</>
<red> https://jestjs.io/docs/en/cli.html</>
<red></>"
`;
exports[`fails for multiple unknown options 1`] = `
"<red><bold><bold>●</><bold> Unrecognized CLI Parameters</>:</>
<red></>
<red> Following options were not recognized:</>
<red> <bold>[\\"jest\\", \\"test\\"]</></>
<red></>
<red> <bold>CLI Options Documentation</>:</>
<red> https://jestjs.io/docs/en/cli.html</>
<red></>"
`;
exports[`fails for unknown option 1`] = `
"<red><bold><bold>●</><bold> Unrecognized CLI Parameter</>:</>
<red></>
<red> Unrecognized option <bold>\\"unknown\\"</>.</>
<red></>
<red> <bold>CLI Options Documentation</>:</>
<red> https://jestjs.io/docs/en/cli.html</>
<red></>"
`;
exports[`shows suggestion when unrecognized cli param length > 1 1`] = `
"<red><bold><bold>●</><bold> Unrecognized CLI Parameter</>:</>
<red></>
<red> Unrecognized option <bold>\\"hell\\"</>. Did you mean <bold>\\"help\\"</>?</>
<red></>
<red> <bold>CLI Options Documentation</>:</>
<red> https://jestjs.io/docs/en/cli.html</>
<red></>"
`;