From b52d4aec6ad79b24bc252244990164f047c5b938 Mon Sep 17 00:00:00 2001 From: Shingo Yamazaki Date: Wed, 21 Jul 2021 17:52:24 +0900 Subject: [PATCH 1/2] test: move `jest.setTimeout` to top of the file ref. https://github.com/facebook/jest/issues/11500 --- packages/data-loader/src/__tests__/main.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/data-loader/src/__tests__/main.test.ts b/packages/data-loader/src/__tests__/main.test.ts index 32d1b69b39..adef62f4cc 100644 --- a/packages/data-loader/src/__tests__/main.test.ts +++ b/packages/data-loader/src/__tests__/main.test.ts @@ -10,9 +10,7 @@ const mainFilePath = path.resolve( packageJson.bin["kintone-data-loader"] ); -beforeEach(() => { - jest.setTimeout(10000); -}); +jest.setTimeout(10000); const checkRejectArg = ({ arg, From 8c4e5cf14c4c8675aabc76879c0e37300f31293d Mon Sep 17 00:00:00 2001 From: Shingo Yamazaki Date: Wed, 21 Jul 2021 17:54:59 +0900 Subject: [PATCH 2/2] chore: extend timeout to 30 sec --- packages/data-loader/src/__tests__/main.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/data-loader/src/__tests__/main.test.ts b/packages/data-loader/src/__tests__/main.test.ts index adef62f4cc..77f34c201f 100644 --- a/packages/data-loader/src/__tests__/main.test.ts +++ b/packages/data-loader/src/__tests__/main.test.ts @@ -10,7 +10,7 @@ const mainFilePath = path.resolve( packageJson.bin["kintone-data-loader"] ); -jest.setTimeout(10000); +jest.setTimeout(30000); const checkRejectArg = ({ arg,