From aaf7dcd48662036087729cbd744f4691fc7a59bf Mon Sep 17 00:00:00 2001 From: yogevbd Date: Mon, 29 Jul 2019 12:26:44 +0300 Subject: [PATCH] Add test script --- package.json | 2 +- scripts/test.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 scripts/test.js diff --git a/package.json b/package.json index cbf8e04..1cfcddd 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "main": "lib/src/index", "scripts": { "pretest": "./node_modules/.bin/eslint *.js test", - "test": "jest", + "test": "node scripts/test", "start": "node ./scripts/start", "test-e2e-ios": "node ./scripts/test-e2e --ios", "test-unit-ios": "node ./scripts/test-unit --ios", diff --git a/scripts/test.js b/scripts/test.js new file mode 100644 index 0000000..2f4ad9f --- /dev/null +++ b/scripts/test.js @@ -0,0 +1,9 @@ +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`); +} -- 2.26.2