Merge pull request #7140 from HHogg/luxon-plugin-cloudbuild

Plugin cloudbuild - Swapped over to use Luxon
This commit is contained in:
Johan Haals
2021-09-14 10:16:53 +02:00
committed by GitHub
6 changed files with 132 additions and 8 deletions
+7
View File
@@ -63,6 +63,13 @@ export default async (cmd: Command) => {
(process.env as any).NODE_ENV = 'test';
}
// This is to have a consistent timezone for when running tests that involve checking
// the formatting of date/times.
// https://stackoverflow.com/questions/56261381/how-do-i-set-a-timezone-in-my-jest-config
if (!process.env.TZ) {
process.env.TZ = 'UTC';
}
// eslint-disable-next-line jest/no-jest-import
await require('jest').run(args);
};