diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aa0ccdb5b328..68902505e39f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -108,7 +108,7 @@ Code that is written needs to be tested to ensure that it achieves the desired b ##### Unit tests -Some of the packages within jest have a `__tests__` directory. This is where unit tests reside in. If the scope of your work only requires a unit test, this is where you will write it in. Tests here usually don't require much if any setup. +Some of the packages within jest have a `__tests__` directory. This is where unit tests reside in. If the scope of your work only requires a unit test, this is where you will write it in. Tests here usually don't require much of any setup. ##### Integration tests diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md index 7b6e4b17de31..15632501f53a 100644 --- a/docs/GettingStarted.md +++ b/docs/GettingStarted.md @@ -156,7 +156,7 @@ npm install --save-dev ts-jest #### Type definitions -There are two ways have [Jest global APIs](GlobalAPI.md) typed for test files written in TypeScript. +There are two ways to have [Jest global APIs](GlobalAPI.md) typed for test files written in TypeScript. You can use type definitions which ships with Jest and will update each time you update Jest. Simply import the APIs from `@jest/globals` package: diff --git a/website/versioned_docs/version-29.0/GettingStarted.md b/website/versioned_docs/version-29.0/GettingStarted.md index 7b6e4b17de31..15632501f53a 100644 --- a/website/versioned_docs/version-29.0/GettingStarted.md +++ b/website/versioned_docs/version-29.0/GettingStarted.md @@ -156,7 +156,7 @@ npm install --save-dev ts-jest #### Type definitions -There are two ways have [Jest global APIs](GlobalAPI.md) typed for test files written in TypeScript. +There are two ways to have [Jest global APIs](GlobalAPI.md) typed for test files written in TypeScript. You can use type definitions which ships with Jest and will update each time you update Jest. Simply import the APIs from `@jest/globals` package: