You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/getting-started/installation.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: Installation
5
5
6
6
### Dependencies
7
7
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.
9
9
10
10
#### NPM
11
11
@@ -26,7 +26,7 @@ yarn add --dev jest typescript ts-jest
26
26
#### Creating
27
27
28
28
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.
30
30
31
31
`ts-jest` can create the configuration file for you automatically:
32
32
@@ -42,10 +42,10 @@ npx ts-jest config:init
42
42
yarn ts-jest config:init
43
43
```
44
44
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.
46
46
47
47
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.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-26.5/getting-started/installation.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: Installation
5
5
6
6
### Dependencies
7
7
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.
9
9
10
10
#### NPM
11
11
@@ -26,7 +26,7 @@ yarn add --dev jest typescript ts-jest
26
26
#### Creating
27
27
28
28
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.
30
30
31
31
`ts-jest` can create the configuration file for you automatically:
32
32
@@ -42,10 +42,10 @@ npx ts-jest config:init
42
42
yarn ts-jest config:init
43
43
```
44
44
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.
46
46
47
47
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.
0 commit comments