From 198c7707b3707ed1f3ede830c3557168b9605467 Mon Sep 17 00:00:00 2001 From: Prashant Andani Date: Sun, 20 Jan 2019 21:25:40 +0530 Subject: [PATCH] Fix typo in type declaration (#7659) --- packages/jest-circus/src/run.js | 2 +- packages/jest-cli/src/lib/init/questions.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/jest-circus/src/run.js b/packages/jest-circus/src/run.js index 373512271d8e..27cadf1420bf 100644 --- a/packages/jest-circus/src/run.js +++ b/packages/jest-circus/src/run.js @@ -118,7 +118,7 @@ const _runTest = async (test: TestEntry): Promise => { // `afterAll` hooks should not affect test status (pass or fail), because if // we had a global `afterAll` hook it would block all existing tests until - // this hook is executed. So we dispatche `test_done` right away. + // this hook is executed. So we dispatch `test_done` right away. dispatch({name: 'test_done', test}); }; diff --git a/packages/jest-cli/src/lib/init/questions.js b/packages/jest-cli/src/lib/init/questions.js index 4dfb51be7477..5e7c829b7f10 100644 --- a/packages/jest-cli/src/lib/init/questions.js +++ b/packages/jest-cli/src/lib/init/questions.js @@ -7,13 +7,13 @@ * @flow */ -type Question = { - intial?: boolean | number, +type Question = {| + initial?: boolean | number, message: string, name: string, type: string, choices?: Array<{title: string, value: string}>, -}; +|}; const defaultQuestions: Array = [ {