Skip to content

Commit 300f70a

Browse files
author
Chris Brody
authored
CLI create integration testing (#114)
integration testing of bin/cli.js with module name with and without the `--view` option using `recursive-readdir` (with sorting) & `fs.readFileSync()` to get the contents of the generated library module artifacts with the generated artifacts ignored as specified in `.gitignore`
1 parent 9c53ba7 commit 300f70a

File tree

7 files changed

+1524
-2
lines changed

7 files changed

+1524
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ npm-debug.log
3232
.stryker-tmp
3333
reports
3434
stryker.log
35+
36+
# CLI create integration test output to be ignored
37+
react-native-integration-*

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"eslint-plugin-node": "^9.2.0",
6262
"eslint-plugin-promise": "^4.2.1",
6363
"eslint-plugin-standard": "^4.0.1",
64-
"jest": "^24.9.0"
64+
"jest": "^24.9.0",
65+
"recursive-readdir": "^2.2.2"
6566
}
6667
}

0 commit comments

Comments
 (0)