@@ -41,20 +41,35 @@ exports[`Main > complex schema examples > should output an error on an unrecogni
4141 20 | " responses" : {"
4242`;
4343
44- exports[`Main > should output error with codeframe 1`] = `
44+ exports[`Main > given a format of \`cli\` > should output error with reconstructed codeframe [without colors] 1`] = `
45+ "ENUM must be equal to one of the allowed values
46+ (paragraph , codeBlock , blockquote )
47+
48+ 4 | "content": [
49+ 5 | {
50+ > 6 | " type" : " paragarph"
51+ | ^^^^^^^^^^^ Did you mean paragraph here ?
52+ 7 | }
53+ 8 | ]
54+ 9 | }"
55+ `;
56+
57+ exports [` Main > given a format of \` cli\` > should output error with reconstructed codeframe 1` ] = `
4558"[31m[1mENUM[22m must be equal to one of the allowed values[39m
4659[31m(paragraph, codeBlock, blockquote)[39m
4760
48- 2 | "type": "doc",
49- 3 | " version" : 1 ,
50- > 4 | " content" : [{ " type" : " paragarph" }]
51- | ^^^^^^^^^^^ Did you mean [95mparagraph [39m here ?
52- 5 | }
53- 6 | "
61+ 4 | "content": [
62+ 5 | {
63+ > 6 | " type" : " paragarph"
64+ | ^^^^^^^^^^^ Did you mean [95mparagraph [39m here ?
65+ 7 | }
66+ 8 | ]
67+ 9 | }"
5468`;
5569
56- exports [` Main > should output error with reconstructed codeframe [without colors] 1` ] = `
57- "ENUM must be equal to one of the allowed values
70+ exports [` Main > given a format of \` cli-array\` > should output error with reconstructed codeframe [without colors] 1` ] = `
71+ [
72+ "ENUM must be equal to one of the allowed values
5873(paragraph, codeBlock, blockquote)
5974
6075 4 | "content": [
@@ -63,11 +78,13 @@ exports[`Main > should output error with reconstructed codeframe [without colors
6378 | ^^^^^^^^^^^ Did you mean paragraph here ?
6479 7 | }
6580 8 | ]
66- 9 | }"
81+ 9 | }" ,
82+ ]
6783` ;
6884
69- exports [` Main > should output error with reconstructed codeframe 1` ] = `
70- "[31m[1mENUM[22m must be equal to one of the allowed values[39m
85+ exports[` Main > given a format of \` cli-array\` > should output error with reconstructed codeframe 1` ] = `
86+ [
87+ "[31m[1mENUM[22m must be equal to one of the allowed values[39m
7188[31m(paragraph, codeBlock, blockquote)[39m
7289
7390 4 | "content": [
@@ -76,5 +93,18 @@ exports[`Main > should output error with reconstructed codeframe 1`] = `
7693 | ^^^^^^^^^^^ Did you mean [95mparagraph [39m here ?
7794 7 | }
7895 8 | ]
79- 9 | }"
96+ 9 | }" ,
97+ ]
98+ ` ;
99+
100+ exports[` Main > should output error with codeframe 1 ` ] = `
101+ " [31m[1mENUM[22m must be equal to one of the allowed values[39m
102+ [31m (paragraph , codeBlock , blockquote )[39m
103+
104+ 2 | " type" : " doc" ,
105+ 3 | " version" : 1 ,
106+ > 4 | " content" : [{ " type" : " paragarph" }]
107+ | ^^^^^^^^^^^ Did you mean [95mparagraph [39m here ?
108+ 5 | }
109+ 6 | "
80110`;
0 commit comments