Skip to content

Commit 7a91e4d

Browse files
Fix setting environmental for mocha tests in windows builds
1 parent 3c40be9 commit 7a91e4d

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "yarn rebuild && webpack --mode production",
88
"dev": "node_modules/.bin/webpack-dev-server --mode development --progress",
99
"rebuild": "cd node_modules/heapdump && node-gyp rebuild --target=7.1.1 --arch=x64 --dist-url=https://atom.io/download/electron || echo Could not build heapdump; cd -",
10-
"test": "TS_NODE_PROJECT=test/tsconfig.json yarn mochatest",
10+
"test": "cross-env TS_NODE_PROJECT=test/tsconfig.json yarn mochatest",
1111
"mochatest": "mocha --require ts-node/register src/**/*.spec.ts"
1212
},
1313
"author": "",
@@ -71,6 +71,7 @@
7171
"@types/vis": "^4.21.9",
7272
"awesome-typescript-loader": "^5.2.1",
7373
"chai": "^4.2.0",
74+
"cross-env": "^7.0.2",
7475
"css-loader": "^3.0.0",
7576
"hard-source-webpack-plugin": "^0.13.1",
7677
"heapdump": "^0.3.12",

app/yarn.lock

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,13 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4:
16621662
safe-buffer "^5.0.1"
16631663
sha.js "^2.4.8"
16641664

1665+
cross-env@^7.0.2:
1666+
version "7.0.2"
1667+
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.2.tgz#bd5ed31339a93a3418ac4f3ca9ca3403082ae5f9"
1668+
integrity sha512-KZP/bMEOJEDCkDQAyRhu3RL2ZO/SUVrxQVI0G3YEQ+OLbRA3c6zgixe8Mq8a/z7+HKlNEjo8oiLUs8iRijY2Rw==
1669+
dependencies:
1670+
cross-spawn "^7.0.1"
1671+
16651672
[email protected], cross-spawn@^6.0.0:
16661673
version "6.0.5"
16671674
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"
@@ -1673,6 +1680,15 @@ [email protected], cross-spawn@^6.0.0:
16731680
shebang-command "^1.2.0"
16741681
which "^1.2.9"
16751682

1683+
cross-spawn@^7.0.1:
1684+
version "7.0.2"
1685+
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.2.tgz#d0d7dcfa74e89115c7619f4f721a94e1fdb716d6"
1686+
integrity sha512-PD6G8QG3S4FK/XCGFbEQrDqO2AnMMsy0meR7lerlIOHAAbkuavGU/pOqprrlvfTNjvowivTeBsjebAL0NSoMxw==
1687+
dependencies:
1688+
path-key "^3.1.0"
1689+
shebang-command "^2.0.0"
1690+
which "^2.0.1"
1691+
16761692
"crypt@>= 0.0.1":
16771693
version "0.0.2"
16781694
resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b"
@@ -4919,6 +4935,11 @@ path-key@^2.0.0, path-key@^2.0.1:
49194935
resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40"
49204936
integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=
49214937

4938+
path-key@^3.1.0:
4939+
version "3.1.1"
4940+
resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
4941+
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
4942+
49224943
path-parse@^1.0.6:
49234944
version "1.0.6"
49244945
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
@@ -5815,11 +5836,23 @@ shebang-command@^1.2.0:
58155836
dependencies:
58165837
shebang-regex "^1.0.0"
58175838

5839+
shebang-command@^2.0.0:
5840+
version "2.0.0"
5841+
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea"
5842+
integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==
5843+
dependencies:
5844+
shebang-regex "^3.0.0"
5845+
58185846
shebang-regex@^1.0.0:
58195847
version "1.0.0"
58205848
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
58215849
integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=
58225850

5851+
shebang-regex@^3.0.0:
5852+
version "3.0.0"
5853+
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
5854+
integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
5855+
58235856
signal-exit@^3.0.0, signal-exit@^3.0.2:
58245857
version "3.0.3"
58255858
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c"
@@ -6757,6 +6790,13 @@ [email protected], which@^1.2.14, which@^1.2.9, which@^1.3.1:
67576790
dependencies:
67586791
isexe "^2.0.0"
67596792

6793+
which@^2.0.1:
6794+
version "2.0.2"
6795+
resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"
6796+
integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==
6797+
dependencies:
6798+
isexe "^2.0.0"
6799+
67606800
67616801
version "1.1.3"
67626802
resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457"

0 commit comments

Comments
 (0)