Skip to content

Commit 6d568f5

Browse files
committed
Fix timezone issues in tests
1 parent 41ff229 commit 6d568f5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"build-crm": "cd examples/crm && yarn -s build"
2525
},
2626
"jest": {
27+
"globalSetup": "./test-global-setup.js",
2728
"setupFilesAfterEnv": [
2829
"./test-setup.js"
2930
],

test-global-setup.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = async () => {
2+
process.env.TZ = 'Europe/Paris';
3+
};

0 commit comments

Comments
 (0)