Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit 69fc904

Browse files
Use a bash script to run the jasmine launcher
Required for windows builds
1 parent 06ddad9 commit 69fc904

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

build-scripts/jasmine.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
# Run the test commands and fail the script if any of them failed
3+
EXIT_STATUS=0
4+
./packages/google-closure-compiler/test/support/jasmine-launcher.js "$@" || EXIT_STATUS=$?
5+
exit $EXIT_STATUS

build-scripts/test.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env bash
22
# Run the test commands and fail the script if any of them failed
33
EXIT_STATUS=0
4-
yarn workspaces run test "$@" || EXIT_STATUS=$?
5-
yarn test:root "$@" || EXIT_STATUS=$?
4+
./packages/google-closure-compiler/test/support/jasmine-launcher.js "$@" || EXIT_STATUS=$?
65
exit $EXIT_STATUS

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"scripts": {
4949
"build": "./build-scripts/build.sh",
5050
"test": "./build-scripts/test.sh",
51-
"test:root": "node ./packages/google-closure-compiler/test/support/jasmine-launcher.js --reporter=jasmine-console-reporter test/*.js",
51+
"test:root": "./build-scripts/jasmine.sh --reporter=jasmine-console-reporter test/*.js",
5252
"clean": "./build-scripts/clean.sh",
5353
"version": "./build-scripts/version-packages.js",
5454
"publish-packages": "./build-scripts/publish.js"

packages/google-closure-compiler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
},
6565
"scripts": {
6666
"build": "echo \"google-closure-compiler build\"",
67-
"test": "node ./test/support/jasmine-launcher.js --reporter=jasmine-console-reporter 'test/*.js'"
67+
"test": "./test/support/jasmine-launcher.sh --reporter=jasmine-console-reporter 'test/*.js'"
6868
},
6969
"engines": {
7070
"node": ">=18"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
# Run the test commands and fail the script if any of them failed
3+
EXIT_STATUS=0
4+
./test/support/jasmine-launcher.js "$@" || EXIT_STATUS=$?
5+
exit $EXIT_STATUS

0 commit comments

Comments
 (0)