11// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22
3+ exports[`taskLog (isCI = false) > error > clears carriage return spinner line when showLog = false 1`] = `
4+ [
5+ "[90m│[39m
6+ ",
7+ "[32m◇[39m foo
8+ ",
9+ "[90m│[39m
10+ ",
11+ "[90m│[39m [2m◒ Cloning repository[22m
12+ ",
13+ "<erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
14+ "[90m│[39m [2m◐ Cloning repository[22m
15+ ",
16+ "<erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
17+ "[90m│[39m [2m◓ Cloning repository[22m
18+ ",
19+ "<erase.line><cursor.up count=1><erase.line><cursor.up count=1><erase.line><cursor.up count=1><erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
20+ "[90m│[39m
21+ [31m■[39m some error!
22+ ",
23+ ]
24+ `;
25+
326exports[`taskLog (isCI = false) > error > clears output if showLog = false 1`] = `
427[
528 "[90m│[39m
@@ -21,6 +44,32 @@ exports[`taskLog (isCI = false) > error > clears output if showLog = false 1`] =
2144]
2245`;
2346
47+ exports[`taskLog (isCI = false) > error > renders latest carriage return spinner line with error 1`] = `
48+ [
49+ "[90m│[39m
50+ ",
51+ "[32m◇[39m foo
52+ ",
53+ "[90m│[39m
54+ ",
55+ "[90m│[39m [2m◒ Cloning repository[22m
56+ ",
57+ "<erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
58+ "[90m│[39m [2m◐ Cloning repository[22m
59+ ",
60+ "<erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
61+ "[90m│[39m [2m◓ Cloning repository[22m
62+ ",
63+ "<erase.line><cursor.up count=1><erase.line><cursor.up count=1><erase.line><cursor.up count=1><erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
64+ "[90m│[39m
65+ [31m■[39m some error!
66+ ",
67+ "[90m│[39m
68+ [90m│[39m [2m◓ Cloning repository[22m
69+ ",
70+ ]
71+ `;
72+
2473exports[`taskLog (isCI = false) > error > renders output with message 1`] = `
2574[
2675 "[90m│[39m
@@ -712,6 +761,28 @@ exports[`taskLog (isCI = false) > message > raw = true appends message text unti
712761]
713762`;
714763
764+ exports[`taskLog (isCI = false) > message > raw = true replaces carriage return spinner updates 1`] = `
765+ [
766+ "[90m│[39m
767+ ",
768+ "[32m◇[39m foo
769+ ",
770+ "[90m│[39m
771+ ",
772+ "[90m│[39m [2m◒ Cloning repository[22m
773+ ",
774+ "<erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
775+ "[90m│[39m [2m◐ Cloning repository[22m
776+ ",
777+ "<erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
778+ "[90m│[39m [2m◓ Cloning repository[22m
779+ ",
780+ "<erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
781+ "[90m│[39m [2m◇ Repository cloned[22m
782+ ",
783+ ]
784+ `;
785+
715786exports[`taskLog (isCI = false) > message > raw = true works when mixed with non-raw messages 1`] = `
716787[
717788 "[90m│[39m
@@ -1164,6 +1235,23 @@ exports[`taskLog (isCI = false) > writes message header 1`] = `
11641235]
11651236`;
11661237
1238+ exports[`taskLog (isCI = true) > error > clears carriage return spinner line when showLog = false 1`] = `
1239+ [
1240+ "[90m│[39m
1241+ ",
1242+ "[32m◇[39m foo
1243+ ",
1244+ "[90m│[39m
1245+ ",
1246+ "<erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
1247+ "<erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
1248+ "<erase.line><cursor.up count=1><erase.line><cursor.up count=1><erase.line><cursor.up count=1><erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
1249+ "[90m│[39m
1250+ [31m■[39m some error!
1251+ ",
1252+ ]
1253+ `;
1254+
11671255exports[`taskLog (isCI = true) > error > clears output if showLog = false 1`] = `
11681256[
11691257 "[90m│[39m
@@ -1180,6 +1268,26 @@ exports[`taskLog (isCI = true) > error > clears output if showLog = false 1`] =
11801268]
11811269`;
11821270
1271+ exports[`taskLog (isCI = true) > error > renders latest carriage return spinner line with error 1`] = `
1272+ [
1273+ "[90m│[39m
1274+ ",
1275+ "[32m◇[39m foo
1276+ ",
1277+ "[90m│[39m
1278+ ",
1279+ "<erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
1280+ "<erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
1281+ "<erase.line><cursor.up count=1><erase.line><cursor.up count=1><erase.line><cursor.up count=1><erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
1282+ "[90m│[39m
1283+ [31m■[39m some error!
1284+ ",
1285+ "[90m│[39m
1286+ [90m│[39m [2m◓ Cloning repository[22m
1287+ ",
1288+ ]
1289+ `;
1290+
11831291exports[`taskLog (isCI = true) > error > renders output with message 1`] = `
11841292[
11851293 "[90m│[39m
@@ -1432,6 +1540,20 @@ exports[`taskLog (isCI = true) > message > raw = true appends message text until
14321540]
14331541`;
14341542
1543+ exports[`taskLog (isCI = true) > message > raw = true replaces carriage return spinner updates 1`] = `
1544+ [
1545+ "[90m│[39m
1546+ ",
1547+ "[32m◇[39m foo
1548+ ",
1549+ "[90m│[39m
1550+ ",
1551+ "<erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
1552+ "<erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
1553+ "<erase.line><cursor.up count=1><erase.line><cursor.left count=1>",
1554+ ]
1555+ `;
1556+
14351557exports[`taskLog (isCI = true) > message > raw = true works when mixed with non-raw messages 1`] = `
14361558[
14371559 "[90m│[39m
0 commit comments