Skip to content

Commit

Permalink
chore: use yarn to wrap node
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Nov 29, 2019
1 parent 0c00a71 commit 1b1b573
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion scripts/test-cov.sh
@@ -1,10 +1,11 @@
#!/bin/bash
set -e

node="yarn node"
jestArgs="--coverage"

if [ -n "$CI" ]; then
jestArgs="${jestArgs} --maxWorkers=4 --ci"
fi

node_modules/.bin/jest $jestArgs
$node node_modules/.bin/jest $jestArgs
6 changes: 3 additions & 3 deletions scripts/test.sh
@@ -1,11 +1,11 @@
#!/bin/bash
set -e

node="node"
node="yarn node"
jestArgs=()

if [ "$TEST_DEBUG" ]; then
node="node --inspect-brk"
node="$node --inspect-brk"
jestArgs+=("--runInBand")
fi

Expand All @@ -23,4 +23,4 @@ if [ -n "$TEST_ONLY" ]; then
jestArgs+=("(packages|codemods|eslint)/.*$TEST_ONLY.*/test")
fi

$node node_modules/jest/bin/jest.js "${jestArgs[@]}"
$node node_modules/.bin/jest "${jestArgs[@]}"

0 comments on commit 1b1b573

Please sign in to comment.