forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
213 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
exports[`test BufferReporter.command 1`] = ` | ||
Array [ | ||
Object { | ||
"data": "foobar", | ||
"error": false, | ||
"type": "command" | ||
} | ||
] | ||
`; | ||
|
||
exports[`test BufferReporter.error 1`] = ` | ||
Array [ | ||
Object { | ||
"data": "foobar", | ||
"error": true, | ||
"type": "error" | ||
} | ||
] | ||
`; | ||
|
||
exports[`test BufferReporter.finished 1`] = ` | ||
Array [ | ||
Object { | ||
"data": 0, | ||
"error": false, | ||
"type": "finished" | ||
} | ||
] | ||
`; | ||
|
||
exports[`test BufferReporter.info 1`] = ` | ||
Array [ | ||
Object { | ||
"data": "foobar", | ||
"error": false, | ||
"type": "info" | ||
} | ||
] | ||
`; | ||
|
||
exports[`test BufferReporter.log 1`] = ` | ||
Array [ | ||
Object { | ||
"data": "foobar", | ||
"error": false, | ||
"type": "log" | ||
} | ||
] | ||
`; | ||
|
||
exports[`test BufferReporter.step 1`] = ` | ||
Array [ | ||
Object { | ||
"data": Object { | ||
"current": 1, | ||
"message": "foobar", | ||
"total": 5 | ||
}, | ||
"error": false, | ||
"type": "step" | ||
} | ||
] | ||
`; | ||
|
||
exports[`test BufferReporter.success 1`] = ` | ||
Array [ | ||
Object { | ||
"data": "foobar", | ||
"error": false, | ||
"type": "success" | ||
} | ||
] | ||
`; | ||
|
||
exports[`test BufferReporter.warn 1`] = ` | ||
Array [ | ||
Object { | ||
"data": "foobar", | ||
"error": true, | ||
"type": "warning" | ||
} | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
exports[`test ConsoleReporter.activity 1`] = ` | ||
Object { | ||
"stderr": "[2K[1G⠁ [2K[1G", | ||
"stdout": "" | ||
} | ||
`; | ||
|
||
exports[`test ConsoleReporter.command 1`] = ` | ||
Object { | ||
"stderr": "", | ||
"stdout": "[2K[1G[90m$ foobar[39m" | ||
} | ||
`; | ||
|
||
exports[`test ConsoleReporter.error 1`] = ` | ||
Object { | ||
"stderr": "[2K[1G[31merror[39m foobar", | ||
"stdout": "" | ||
} | ||
`; | ||
|
||
exports[`test ConsoleReporter.footer 1`] = ` | ||
Object { | ||
"stderr": "", | ||
"stdout": "[2K[1G✨ Done in 0.00s." | ||
} | ||
`; | ||
|
||
exports[`test ConsoleReporter.footer 2`] = ` | ||
Object { | ||
"stderr": "", | ||
"stdout": "[2K[1G✨ Done in 0.00s. Peak memory usage 0.00MB." | ||
} | ||
`; | ||
|
||
exports[`test ConsoleReporter.header 1`] = ` | ||
Object { | ||
"stderr": "", | ||
"stdout": "[2K[1G[1mkpm foobar v0.0.0[22m" | ||
} | ||
`; | ||
|
||
exports[`test ConsoleReporter.info 1`] = ` | ||
Object { | ||
"stderr": "", | ||
"stdout": "[2K[1G[34minfo[39m foobar" | ||
} | ||
`; | ||
|
||
exports[`test ConsoleReporter.log 1`] = ` | ||
Object { | ||
"stderr": "", | ||
"stdout": "[2K[1Gfoobar" | ||
} | ||
`; | ||
|
||
exports[`test ConsoleReporter.progress 1`] = ` | ||
Object { | ||
"stderr": "[2K[1G░░ 0/2[2K[1G█░ 1/2[2K[1G", | ||
"stdout": "" | ||
} | ||
`; | ||
|
||
exports[`test ConsoleReporter.progress 2`] = ` | ||
Object { | ||
"stderr": "", | ||
"stdout": "" | ||
} | ||
`; | ||
|
||
exports[`test ConsoleReporter.progress 3`] = ` | ||
Object { | ||
"stderr": "", | ||
"stdout": "" | ||
} | ||
`; | ||
|
||
exports[`test ConsoleReporter.select 1`] = ` | ||
Object { | ||
"stderr": "", | ||
"stdout": "[2K[1G[34minfo[39m Ayo | ||
[2K[1G [2m1)[22m foo | ||
[2K[1G [2m2)[22m bar | ||
[1G[0JSelect one?: [14G1" | ||
} | ||
`; | ||
exports[`test ConsoleReporter.step 1`] = ` | ||
Object { | ||
"stderr": "", | ||
"stdout": "[2K[1G[90m[1/5][39m foboar..." | ||
} | ||
`; | ||
exports[`test ConsoleReporter.success 1`] = ` | ||
Object { | ||
"stderr": "", | ||
"stdout": "[2K[1G[32msuccess[39m foobar" | ||
} | ||
`; | ||
exports[`test ConsoleReporter.warn 1`] = ` | ||
Object { | ||
"stderr": "[2K[1G[33mwarning[39m foobar", | ||
"stdout": "" | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.