diff --git a/js/npm/etherscan/package.json b/js/npm/etherscan/package.json index 956bcb3695f..234cdf6968d 100644 --- a/js/npm/etherscan/package.json +++ b/js/npm/etherscan/package.json @@ -22,9 +22,6 @@ "Parity", "Promise" ], - "scripts": { - "test": "node test/smoke.spec.js" - }, "peerDependencies": { "es6-promise": "^4.0.5", "isomorphic-fetch": "^2.2.1", diff --git a/js/npm/jsonrpc/package.json b/js/npm/jsonrpc/package.json index 4ef1c98391d..109620ef8af 100644 --- a/js/npm/jsonrpc/package.json +++ b/js/npm/jsonrpc/package.json @@ -21,9 +21,6 @@ "RPC", "Parity" ], - "scripts": { - "test": "node test/smoke.spec.js" - }, "peerDependencies": { "babel-polyfill": "^6.22.0" }, diff --git a/js/npm/parity/package.json b/js/npm/parity/package.json index 99da28b3f9e..59792e674de 100644 --- a/js/npm/parity/package.json +++ b/js/npm/parity/package.json @@ -22,9 +22,6 @@ "Parity", "Promise" ], - "scripts": { - "test": "node test/smoke.spec.js" - }, "peerDependencies": { "es6-promise": "^4.0.5", "isomorphic-fetch": "^2.2.1", diff --git a/js/npm/shapeshift/package.json b/js/npm/shapeshift/package.json index e8006949fed..c4ffb037ac0 100644 --- a/js/npm/shapeshift/package.json +++ b/js/npm/shapeshift/package.json @@ -22,9 +22,6 @@ "Parity", "Promise" ], - "scripts": { - "test": "node test/smoke.spec.js" - }, "peerDependencies": { "es6-promise": "^4.0.5", "isomorphic-fetch": "^2.2.1", diff --git a/js/scripts/prepare-npm-libraries.sh b/js/scripts/prepare-npm-libraries.sh index 2c10f88dfe7..b80dee6e736 100755 --- a/js/scripts/prepare-npm-libraries.sh +++ b/js/scripts/prepare-npm-libraries.sh @@ -17,10 +17,7 @@ cp LICENSE npm/jsonrpc/LICENSE mkdir -p npm/jsonrpc/src cp -R src/jsonrpc/* npm/jsonrpc/src env LIBRARY=jsonrpc npm run ci:build:npm - -pushd .; cd npm/jsonrpc -npm test -popd +node test/e2e/jsonrpc.smoke.js printf "\n\n" printf "\n***************************************" @@ -32,10 +29,7 @@ cp src/parity.npm.js npm/parity/src/index.js cp -R src/abi npm/parity/src cp -R src/api npm/parity/src env LIBRARY=parity npm run ci:build:npm - -pushd .; cd npm/parity -npm test -popd +node test/e2e/parity.smoke.js printf "\n\n" printf "\n***************************************" @@ -45,10 +39,7 @@ cp LICENSE npm/etherscan/LICENSE mkdir -p npm/etherscan/src cp -LR src/3rdparty/etherscan/* npm/etherscan/src env LIBRARY=etherscan npm run ci:build:npm - -pushd .; cd npm/etherscan -npm test -popd +node test/e2e/etherscan.smoke.js printf "\n\n" printf "\n***************************************" @@ -58,10 +49,7 @@ cp LICENSE npm/shapeshift/LICENSE mkdir -p npm/shapeshift/src cp -R src/3rdparty/shapeshift/* npm/shapeshift/src env LIBRARY=shapeshift npm run ci:build:npm - -pushd .; cd npm/shapeshift -npm test -popd +node test/e2e/shapeshift.smoke.js # exit with exit code exit 0 diff --git a/js/npm/etherscan/test/smoke.spec.js b/js/test/e2e/etherscan.smoke.js similarity index 94% rename from js/npm/etherscan/test/smoke.spec.js rename to js/test/e2e/etherscan.smoke.js index bbc114eb785..b296cac02e1 100644 --- a/js/npm/etherscan/test/smoke.spec.js +++ b/js/test/e2e/etherscan.smoke.js @@ -17,5 +17,5 @@ const assert = require('assert'); assert.doesNotThrow(() => { - const etherscan = require('..'); + const etherscan = require('../../npm/etherscan'); }, Error, 'requiring @parity/etherscan fails'); diff --git a/js/npm/jsonrpc/test/smoke.spec.js b/js/test/e2e/jsonrpc.smoke.js similarity index 92% rename from js/npm/jsonrpc/test/smoke.spec.js rename to js/test/e2e/jsonrpc.smoke.js index 59bad3a057b..6764742872c 100644 --- a/js/npm/jsonrpc/test/smoke.spec.js +++ b/js/test/e2e/jsonrpc.smoke.js @@ -17,9 +17,9 @@ const assert = require('assert'); assert.doesNotThrow(() => { - require('..'); + require('../../npm/jsonrpc'); }, Error, 'requiring @parity/jsonrpc fails'); assert.doesNotThrow(() => { - require('../index.json'); + require('../../npm/jsonrpc/index.json'); }, Error, 'requiring @parity/jsonrpc/index.json fails'); diff --git a/js/npm/parity/test/smoke.spec.js b/js/test/e2e/parity.smoke.js similarity index 85% rename from js/npm/parity/test/smoke.spec.js rename to js/test/e2e/parity.smoke.js index b063d2315a4..77249b4977c 100644 --- a/js/npm/parity/test/smoke.spec.js +++ b/js/test/e2e/parity.smoke.js @@ -17,10 +17,10 @@ const assert = require('assert'); assert.doesNotThrow(() => { - const parity = require('..'); -}, Error, 'requiring @parity/parity fails'); + const parity = require('../../npm/parity'); +}, Error, 'requiring @parity/parity.js fails'); -const parity = require('..'); +const parity = require('../../npm/parity'); assert.ok(parity); assert.ok(parity.Api); assert.ok(parity.Abi); diff --git a/js/npm/shapeshift/test/smoke.spec.js b/js/test/e2e/shapeshift.smoke.js similarity index 93% rename from js/npm/shapeshift/test/smoke.spec.js rename to js/test/e2e/shapeshift.smoke.js index 522f752a582..d4d77348476 100644 --- a/js/npm/shapeshift/test/smoke.spec.js +++ b/js/test/e2e/shapeshift.smoke.js @@ -17,5 +17,5 @@ const assert = require('assert'); assert.doesNotThrow(() => { - const shapeshift = require('..'); + const shapeshift = require('../../npm/shapeshift'); }, Error, 'requiring @parity/shapeshift fails');