2023-03-20 08:55:40 -07:00
|
|
|
import moment from 'moment';
|
2023-07-12 02:15:38 -07:00
|
|
|
import { testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
2023-02-09 05:54:24 -08:00
|
|
|
|
|
|
|
const workflows = getWorkflowFilenames(__dirname);
|
|
|
|
|
|
|
|
// ! When making changes to the Workflow test files make sure to export env TZ=UTC as Github Actions runs in UTC timezone
|
2023-03-20 08:55:40 -07:00
|
|
|
if (new Date().getTimezoneOffset() === 0 || moment().utcOffset() === 0) {
|
2023-02-09 05:54:24 -08:00
|
|
|
describe('Test DateTime Node', () => testWorkflows(workflows));
|
|
|
|
} else {
|
|
|
|
describe('Test DateTime Node', () => {
|
|
|
|
it('Skipped because timezone is not UTC', () => {
|
|
|
|
expect(true).toBe(true);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|