Skip to content

Commit 2576f70

Browse files
authored
docs(devs-infra): explain the principle, improve English (#2327)
1 parent c30b0c6 commit 2576f70

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

website/docs/getting-started/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Installation
55

66
### Dependencies
77

8-
You can install `ts-jest` and dependencies all at once with the following commands.
8+
You can install `ts-jest` and dependencies all at once with one of the following commands.
99

1010
#### NPM
1111

@@ -26,7 +26,7 @@ yarn add --dev jest typescript ts-jest
2626
#### Creating
2727

2828
By default Jest can run without any config files, but it will not compile `.ts` files.
29-
To make it transpile TypeScript with `ts-jest`, we will need to create a configuration file.
29+
To make it transpile TypeScript with `ts-jest`, we will need to create a configuration file that will tell Jest to use a `ts-jest` preset.
3030

3131
`ts-jest` can create the configuration file for you automatically:
3232

@@ -42,10 +42,10 @@ npx ts-jest config:init
4242
yarn ts-jest config:init
4343
```
4444

45-
This will create a basic Jest configuration file which will make Jest know about your `.ts` files and handle them correctly.
45+
This will create a basic Jest configuration file which will inform Jest about how to handle `.ts` files correctly.
4646

4747
You can also use the `jest --init` command (prefixed with either `npx` or `yarn` depending on what you're using) to have more options related to Jest.
48-
However, answer `no` to the Jest question about whether or not to enable Typescript. Instead, add the line: `preset: "ts-jest"` to the `jest.config.js` file afterwards.
48+
However, answer `no` to the Jest question about whether or not to enable TypeScript. Instead, add the line: `preset: "ts-jest"` to the `jest.config.js` file afterwards.
4949

5050
#### Customizing
5151

website/versioned_docs/version-26.5/getting-started/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Installation
55

66
### Dependencies
77

8-
You can install `ts-jest` and dependencies all at once with the following commands.
8+
You can install `ts-jest` and dependencies all at once with one of the following commands.
99

1010
#### NPM
1111

@@ -26,7 +26,7 @@ yarn add --dev jest typescript ts-jest
2626
#### Creating
2727

2828
By default Jest can run without any config files, but it will not compile `.ts` files.
29-
To make it transpile TypeScript with `ts-jest`, we will need to create a configuration file.
29+
To make it transpile TypeScript with `ts-jest`, we will need to create a configuration file that will tell Jest to use a `ts-jest` preset.
3030

3131
`ts-jest` can create the configuration file for you automatically:
3232

@@ -42,10 +42,10 @@ npx ts-jest config:init
4242
yarn ts-jest config:init
4343
```
4444

45-
This will create a basic Jest configuration file which will make Jest know about your `.ts` files and handle them correctly.
45+
This will create a basic Jest configuration file which will inform Jest about how to handle `.ts` files correctly.
4646

4747
You can also use the `jest --init` command (prefixed with either `npx` or `yarn` depending on what you're using) to have more options related to Jest.
48-
However, answer `no` to the Jest question about whether or not to enable Typescript. Instead, add the line: `preset: "ts-jest"` to the `jest.config.js` file afterwards.
48+
However, answer `no` to the Jest question about whether or not to enable TypeScript. Instead, add the line: `preset: "ts-jest"` to the `jest.config.js` file afterwards.
4949

5050
#### Customizing
5151

0 commit comments

Comments
 (0)