test(Gmail Node): Add tests for Gmail node v1 (no-changelog) (#12461)

This commit is contained in:
Elias Meire
2025-03-14 18:13:12 +01:00
committed by GitHub
parent 86b791167a
commit 5670449025
12 changed files with 1650 additions and 62 deletions

View File

@@ -5,15 +5,17 @@ import nock from 'nock';
import { testWorkflows } from '@test/nodes/Helpers';
import labels from './fixtures/labels.json';
import messages from './fixtures/messages.json';
import { getGmailAliases, getLabels, getThreadMessages } from '../../v2/loadOptions';
import labels from '../fixtures/labels.json';
import messages from '../fixtures/messages.json';
describe('Test Gmail Node v2', () => {
beforeAll(() => {
jest
.useFakeTimers({ doNotFake: ['setImmediate', 'nextTick'] })
.setSystemTime(new Date('2024-12-16 12:34:56.789Z'));
nock.disableNetConnect();
});
describe('Messages', () => {