Commit aaf7dcd4 authored by yogevbd's avatar yogevbd

Add test script

parent 5175c70e
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
"main": "lib/src/index", "main": "lib/src/index",
"scripts": { "scripts": {
"pretest": "./node_modules/.bin/eslint *.js test", "pretest": "./node_modules/.bin/eslint *.js test",
"test": "jest", "test": "node scripts/test",
"start": "node ./scripts/start", "start": "node ./scripts/start",
"test-e2e-ios": "node ./scripts/test-e2e --ios", "test-e2e-ios": "node ./scripts/test-e2e --ios",
"test-unit-ios": "node ./scripts/test-unit --ios", "test-unit-ios": "node ./scripts/test-unit --ios",
......
const exec = require('shell-utils').exec;
run();
function run() {
exec.execSync(`jest`);
exec.execSync(`npm run test-unit-ios`);
exec.execSync(`npm run test-unit-android`);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment