* Swap to yarn 2 * Use polkadot-dev-run-test for jest * Try and fix JS tests via jest * Try via @polkadot/dev
18 lines
503 B
Bash
Executable File
18 lines
503 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright 2019-2020 @polkadot/wasm authors & contributors
|
|
# This software may be modified and distributed under the terms
|
|
# of the Apache-2.0 license. See the LICENSE file for details.
|
|
|
|
set -e
|
|
|
|
echo "*** Testing WASM"
|
|
node ./test/wasm.js
|
|
|
|
echo "*** Testing ASM.js"
|
|
node ./test/asm.js
|
|
|
|
echo "*** Testing via Jest"
|
|
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
|