From 72e3326e87975ced0659efa4cb1abd46a68994a8 Mon Sep 17 00:00:00 2001 From: Fahmi Akbar Wildana Date: Tue, 29 Jan 2019 03:38:33 +0700 Subject: [PATCH 1/4] add test.todo Update on Jest 24 https://jestjs.io/blog/2019/01/25/jest-24-refreshing-polished-typescript-friendly#testtodo --- types/jest/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index 368ed83353..c60ff0b75c 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -274,6 +274,10 @@ declare namespace jest { * Skips running this test in the current file. */ skip: It; + /** + * Sketch out which tests to write in the future. + */ + todo: It; /** * Experimental and should be avoided. */ From 3b39ae91394f05cde5b65e8571df2c60a24c5eb6 Mon Sep 17 00:00:00 2001 From: Fahmi Akbar Wildana Date: Tue, 29 Jan 2019 03:46:13 +0700 Subject: [PATCH 2/4] bump version --- types/jest/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index c60ff0b75c..5f5dc63fff 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Jest 23.3 +// Type definitions for Jest 24 // Project: http://facebook.github.io/jest/ // Definitions by: Asana // Ivo Stratev From eb007e473db7e3d5cabaee02ac60ca0dc20a3314 Mon Sep 17 00:00:00 2001 From: Fahmi Akbar Wildana Date: Tue, 29 Jan 2019 03:50:22 +0700 Subject: [PATCH 3/4] update test --- types/jest/jest-tests.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/types/jest/jest-tests.ts b/types/jest/jest-tests.ts index 4164e009e4..341e3278af 100644 --- a/types/jest/jest-tests.ts +++ b/types/jest/jest-tests.ts @@ -83,6 +83,12 @@ it.skip("name", () => {}, 9001); it.skip("name", async () => {}, 9001); it.skip("name", (callback: jest.DoneCallback) => {}, 9001); +it.todo("name", () => {}); +it.todo("name", async () => {}); +it.todo("name", () => {}, 9001); +it.todo("name", async () => {}, 9001); +it.todo("name", (callback: jest.DoneCallback) => {}, 9001); + it.concurrent("name", () => {}); it.concurrent("name", async () => {}); it.concurrent("name", () => {}, 9001); @@ -107,6 +113,12 @@ fit.skip("name", () => {}, 9001); fit.skip("name", async () => {}, 9001); fit.skip("name", (callback: jest.DoneCallback) => {}, 9001); +fit.todo("name", () => {}); +fit.todo("name", async () => {}); +fit.todo("name", () => {}, 9001); +fit.todo("name", async () => {}, 9001); +fit.todo("name", (callback: jest.DoneCallback) => {}, 9001); + fit.concurrent("name", () => {}); fit.concurrent("name", async () => {}); fit.concurrent("name", () => {}, 9001); @@ -131,6 +143,12 @@ xit.skip("name", () => {}, 9001); xit.skip("name", async () => {}, 9001); xit.skip("name", (callback: jest.DoneCallback) => {}, 9001); +xit.todo("name", () => {}); +xit.todo("name", async () => {}); +xit.todo("name", () => {}, 9001); +xit.todo("name", async () => {}, 9001); +xit.todo("name", (callback: jest.DoneCallback) => {}, 9001); + xit.concurrent("name", () => {}); xit.concurrent("name", async () => {}); xit.concurrent("name", () => {}, 9001); @@ -155,6 +173,12 @@ test.skip("name", () => {}, 9001); test.skip("name", async () => {}, 9001); test.skip("name", (callback: jest.DoneCallback) => {}, 9001); +test.todo("name", () => {}); +test.todo("name", async () => {}); +test.todo("name", () => {}, 9001); +test.todo("name", async () => {}, 9001); +test.todo("name", (callback: jest.DoneCallback) => {}, 9001); + test.concurrent("name", () => {}); test.concurrent("name", async () => {}); test.concurrent("name", () => {}, 9001); @@ -179,6 +203,12 @@ xtest.skip("name", () => {}, 9001); xtest.skip("name", async () => {}, 9001); xtest.skip("name", (callback: jest.DoneCallback) => {}, 9001); +xtest.todo("name", () => {}); +xtest.todo("name", async () => {}); +xtest.todo("name", () => {}, 9001); +xtest.todo("name", async () => {}, 9001); +xtest.todo("name", (callback: jest.DoneCallback) => {}, 9001); + xtest.concurrent("name", () => {}); xtest.concurrent("name", async () => {}); xtest.concurrent("name", () => {}, 9001); From 8c6df47a9e55e2bad7b030830d615a80bdd31d30 Mon Sep 17 00:00:00 2001 From: Fahmi Akbar Wildana Date: Mon, 4 Feb 2019 07:51:51 +0700 Subject: [PATCH 4/4] Add minor version Hope this fix the CI --- types/jest/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index 5f5dc63fff..31d4dd36a9 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Jest 24 +// Type definitions for Jest 24.0 // Project: http://facebook.github.io/jest/ // Definitions by: Asana // Ivo Stratev