We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 120e649 commit 3b03169Copy full SHA for 3b03169
README.md
@@ -8,6 +8,14 @@
8
$ npm install --save-dev cli-prompts-test
9
```
10
11
+## API
12
+
13
+### runTest(args, answers, options?)
14
15
+- `args`: CLI args to pass in.
16
+- `answers`: answers to be passed to `stdout` (simulate user input).
17
+- `options`: Optionally specify the `testPath` (defaults to `process.cwd()`) and `timeout` (defaults to `500ms`) between keystrokes.
18
19
## Usage
20
21
```js
@@ -64,4 +72,6 @@ describe("cli-prompts-test", () => {
64
72
expect(stdout).toContain("You chose Third option");
65
73
});
66
74
67
-```
75
+```
76
77
+Find an example [here](https://github.com/madlabsinc/mevn-cli/blob/develop/jest/helpers.js).
0 commit comments