We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73a8fda commit 7b1b3d5Copy full SHA for 7b1b3d5
ci/dev/test.sh
@@ -3,16 +3,22 @@ set -euo pipefail
3
4
main() {
5
cd "$(dirname "$0")/../.."
6
- cd test
7
- # We need to make sure the dependencies are installed
8
- # because we run jest from node_modules
9
- yarn
10
- cd test-plugin
+ pushd test/test-plugin
11
make -s out/index.js
12
# We must keep jest in a sub-directory. See ../../test/package.json for more
13
# information. We must also run it from the root otherwise coverage will not
14
# include our source files.
15
- cd "$OLDPWD"
+ popd
+ if [[ -d ./test/node_modules ]]; then
+ echo "Found node_modules directory under /test"
+ else
+ echo "Did not find node_modules directory under /test"
16
+ echo "...Installing test dependencies."
17
+ pushd test
18
+ yarn
19
20
+ fi
21
+
22
./test/node_modules/.bin/jest "$@"
23
}
24
0 commit comments