You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check out [Interactive Examples on Stackblitz](https://stackblitz.com/edit/node-kfod5b?file=examples%2Fprompts%2Fprompts.test.js)
34
34
35
-
### Hello World Example
35
+
### Eg 1: Hello World Example
36
36
37
37
```js
38
38
// hello-world.test.js
@@ -63,7 +63,28 @@ readline.question(`What's your name?`, (name) => {
63
63
64
64
```
65
65
66
-
Check out [More Examples on Stackblitz](https://stackblitz.com/edit/node-kfod5b?file=examples%2Fprompts%2Fprompts.test.js)
66
+
### Eg 2: Tokenized Output
67
+
68
+
Check out [this example of StackBlitz](https://stackblitz.com/edit/node-kfod5b?file=examples%2Fcolored-output%2Fcolored-output.test.js)
69
+
70
+
Sometimes you may want to test if the output has correct color and graphics. You can use the `.tokenizedOutput` method to get tokens in the output.
71
+
72
+
Check out [list of tokens](https://github.com/saurabhdaware/cli-testing-library/blob/18e1e12d86cec7b429f949cdd571b13b64fd4747/lib/cli-ansi-parser.js#L28) that library outputs.
0 commit comments