Skip to content

Commit 44a0b7f

Browse files
committed
Find jest path using which
`npm bin` was removed: npm/cli#5459 Signed-off-by: Andrew Haines <[email protected]>
1 parent af75d5c commit 44a0b7f

File tree

1 file changed

+3
-2
lines changed
  • packages/test/scripts

1 file changed

+3
-2
lines changed

packages/test/scripts/jest

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ set -o errexit
33
set -o nounset
44
set -o pipefail
55

6+
jest=$(which jest)
7+
68
node_version=$(node --version)
7-
npm_bin=$(npm bin)
89

910
node_command=(node)
1011

@@ -16,4 +17,4 @@ esac
1617

1718
export NODE_EXTRA_CA_CERTS=servers/tmp/certificates/server.root.crt
1819

19-
exec "${node_command[@]}" "${npm_bin}/jest" "$@"
20+
exec "${node_command[@]}" "${jest}" "$@"

0 commit comments

Comments
 (0)