Skip to content

Commit aaf7dcd

Browse files
committed
Add test script
1 parent 5175c70 commit aaf7dcd

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"main": "lib/src/index",
2323
"scripts": {
2424
"pretest": "./node_modules/.bin/eslint *.js test",
25-
"test": "jest",
25+
"test": "node scripts/test",
2626
"start": "node ./scripts/start",
2727
"test-e2e-ios": "node ./scripts/test-e2e --ios",
2828
"test-unit-ios": "node ./scripts/test-unit --ios",

scripts/test.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const exec = require('shell-utils').exec;
2+
3+
run();
4+
5+
function run() {
6+
exec.execSync(`jest`);
7+
exec.execSync(`npm run test-unit-ios`);
8+
exec.execSync(`npm run test-unit-android`);
9+
}

0 commit comments

Comments
 (0)