Swap to yarn 2 (#58)

* Swap to yarn 2

* Use polkadot-dev-run-test for jest

* Try and fix JS tests via jest

* Try via @polkadot/dev
This commit is contained in:
Jaco Greeff
2020-02-28 12:58:57 +01:00
committed by GitHub
parent d336b1f894
commit a9b2ac1240
20 changed files with 89523 additions and 13800 deletions
+3 -3
View File
@@ -5,8 +5,6 @@
set -e
echo "*** Testing package"
echo "*** Testing WASM"
node ./test/wasm.js
@@ -14,4 +12,6 @@ echo "*** Testing ASM.js"
node ./test/asm.js
echo "*** Testing via Jest"
yarn jest ./test/jest.spec.js
yarn polkadot-dev-run-test ./test/jest.spec.js
# FIXME, this should be via yarn
# ../../node_modules/@polkadot/dev/scripts/polkadot-dev-run-test.js ./test/jest.spec.js
+1 -3
View File
@@ -5,17 +5,15 @@
set -e
echo "*** Testing packages"
cd packages
PACKAGES=( $(ls -1d *) )
for PKG in "${PACKAGES[@]}"; do
if [ -f "$PKG/package.json" ]; then
echo "*** Testing $PKG"
cd $PKG
echo "*** Testing Rust $PKG"
echo "*** Testing Rust"
RUST_BACKTRACE=full rustup run nightly cargo test --release -- --nocapture
cd ..