For tests, Date will always be set to UTC timezone
This commit is contained in:
+2
-1
@@ -101,7 +101,8 @@
|
||||
"ts-jest": {
|
||||
"tsconfig": "tsconfig.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"globalSetup": "./tests/setup.js"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"main": "dist/worker.js"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
module.exports = async () => {
|
||||
process.env.TZ = 'UTC';
|
||||
};
|
||||
Reference in New Issue
Block a user