Skip to content

Commit 597c9c4

Browse files
authored
Merge pull request #1849 from github/koesie10/date-environment-variables
Add environment variables for date test
2 parents 0f5117e + 4e66b62 commit 597c9c4

3 files changed

Lines changed: 154 additions & 8 deletions

File tree

.vscode/settings.json

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,28 @@
4242
"LANG": "en-US",
4343
"TZ": "UTC"
4444
},
45-
// Uncomment to debug integration tests
46-
// "jestrunner.debugOptions": {
47-
// "attachSimplePort": 9223,
48-
// "env": {
49-
// "VSCODE_WAIT_FOR_DEBUGGER": "true",
50-
// }
51-
// },
45+
"jestrunner.debugOptions": {
46+
// Uncomment to debug integration tests
47+
// "attachSimplePort": 9223,
48+
"env": {
49+
"LANG": "en-US",
50+
"TZ": "UTC",
51+
// Uncomment to debug integration tests
52+
// "VSCODE_WAIT_FOR_DEBUGGER": "true",
53+
}
54+
},
55+
"terminal.integrated.env.linux": {
56+
"LANG": "en-US",
57+
"TZ": "UTC"
58+
},
59+
"terminal.integrated.env.osx": {
60+
"LANG": "en-US",
61+
"TZ": "UTC"
62+
},
63+
"terminal.integrated.env.windows": {
64+
"LANG": "en-US",
65+
"TZ": "UTC"
66+
},
5267
"[typescript]": {
5368
"editor.defaultFormatter": "esbenp.prettier-vscode",
5469
"editor.formatOnSave": true,

extensions/ql-vscode/package-lock.json

Lines changed: 130 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/ql-vscode/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@
12861286
"watch:webpack": "gulp watchView",
12871287
"watch:files": "gulp watchTestData",
12881288
"test": "npm-run-all -p test:*",
1289-
"test:unit": "jest --projects test",
1289+
"test:unit": "cross-env TZ=UTC LANG=en-US jest --projects test",
12901290
"test:view": "jest --projects src/view",
12911291
"integration": "npm-run-all integration:*",
12921292
"integration:no-workspace": "jest --projects src/vscode-tests/no-workspace",
@@ -1397,6 +1397,7 @@
13971397
"ansi-colors": "^4.1.1",
13981398
"applicationinsights": "^2.3.5",
13991399
"babel-loader": "^8.2.5",
1400+
"cross-env": "^7.0.3",
14001401
"css-loader": "~3.1.0",
14011402
"del": "^6.0.0",
14021403
"eslint": "^8.23.1",

0 commit comments

Comments
 (0)