Skip to content

Commit 578ee3b

Browse files
committed
Ensure tests always run in GMT
1 parent b98f280 commit 578ee3b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
"json-summary",
7373
"text",
7474
"lcov"
75-
]
75+
],
76+
"globalSetup": "./tests/setup.js"
7677
},
7778
"husky": {
7879
"hooks": {

tests/setup.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = async () => {
2+
process.env.TZ = "GMT";
3+
};

0 commit comments

Comments
 (0)