Skip to content

Commit 585beb6

Browse files
authored
docs: fix typos in CodeTransformation.md (#12034)
1 parent a3bc271 commit 585beb6

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

docs/CodeTransformation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You can write your own transformer. The API of a transformer is as follows:
2424
```ts
2525
interface SyncTransformer<OptionType = unknown> {
2626
/**
27-
* Indicates if the transformer is capabale of instrumenting the code for code coverage.
27+
* Indicates if the transformer is capable of instrumenting the code for code coverage.
2828
*
2929
* If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented.
3030
* If V8 coverage is _not_ active, and this is `false`. Jest will instrument the code returned by this transformer using Babel.
@@ -59,7 +59,7 @@ interface SyncTransformer<OptionType = unknown> {
5959

6060
interface AsyncTransformer<OptionType = unknown> {
6161
/**
62-
* Indicates if the transformer is capabale of instrumenting the code for code coverage.
62+
* Indicates if the transformer is capable of instrumenting the code for code coverage.
6363
*
6464
* If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented.
6565
* If V8 coverage is _not_ active, and this is `false`. Jest will instrument the code returned by this transformer using Babel.
@@ -120,7 +120,7 @@ type TransformedSource =
120120
| {code: string; map?: RawSourceMap | string | null}
121121
| string;
122122

123-
// Config.ProjectConfig can be seen in in code [here](https://github.com/facebook/jest/blob/v26.6.3/packages/jest-types/src/Config.ts#L323)
123+
// Config.ProjectConfig can be seen in code [here](https://github.com/facebook/jest/blob/v26.6.3/packages/jest-types/src/Config.ts#L323)
124124
// RawSourceMap comes from [`source-map`](https://github.com/mozilla/source-map/blob/0.6.1/source-map.d.ts#L6-L12)
125125
```
126126

packages/jest-transform/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export interface TransformOptions<OptionType = unknown>
7070

7171
export interface SyncTransformer<OptionType = unknown> {
7272
/**
73-
* Indicates if the transformer is capabale of instrumenting the code for code coverage.
73+
* Indicates if the transformer is capable of instrumenting the code for code coverage.
7474
*
7575
* If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented.
7676
* If V8 coverage is _not_ active, and this is `false`. Jest will instrument the code returned by this transformer using Babel.
@@ -105,7 +105,7 @@ export interface SyncTransformer<OptionType = unknown> {
105105

106106
export interface AsyncTransformer<OptionType = unknown> {
107107
/**
108-
* Indicates if the transformer is capabale of instrumenting the code for code coverage.
108+
* Indicates if the transformer is capable of instrumenting the code for code coverage.
109109
*
110110
* If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented.
111111
* If V8 coverage is _not_ active, and this is `false`. Jest will instrument the code returned by this transformer using Babel.

website/versioned_docs/version-27.0/CodeTransformation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You can write your own transformer. The API of a transformer is as follows:
2424
```ts
2525
interface SyncTransformer<OptionType = unknown> {
2626
/**
27-
* Indicates if the transformer is capabale of instrumenting the code for code coverage.
27+
* Indicates if the transformer is capable of instrumenting the code for code coverage.
2828
*
2929
* If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented.
3030
* If V8 coverage is _not_ active, and this is `false`. Jest will instrument the code returned by this transformer using Babel.
@@ -59,7 +59,7 @@ interface SyncTransformer<OptionType = unknown> {
5959

6060
interface AsyncTransformer<OptionType = unknown> {
6161
/**
62-
* Indicates if the transformer is capabale of instrumenting the code for code coverage.
62+
* Indicates if the transformer is capable of instrumenting the code for code coverage.
6363
*
6464
* If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented.
6565
* If V8 coverage is _not_ active, and this is `false`. Jest will instrument the code returned by this transformer using Babel.
@@ -120,7 +120,7 @@ type TransformedSource =
120120
| {code: string; map?: RawSourceMap | string | null}
121121
| string;
122122

123-
// Config.ProjectConfig can be seen in in code [here](https://github.com/facebook/jest/blob/v26.6.3/packages/jest-types/src/Config.ts#L323)
123+
// Config.ProjectConfig can be seen in code [here](https://github.com/facebook/jest/blob/v26.6.3/packages/jest-types/src/Config.ts#L323)
124124
// RawSourceMap comes from [`source-map`](https://github.com/mozilla/source-map/blob/0.6.1/source-map.d.ts#L6-L12)
125125
```
126126

website/versioned_docs/version-27.1/CodeTransformation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You can write your own transformer. The API of a transformer is as follows:
2424
```ts
2525
interface SyncTransformer<OptionType = unknown> {
2626
/**
27-
* Indicates if the transformer is capabale of instrumenting the code for code coverage.
27+
* Indicates if the transformer is capable of instrumenting the code for code coverage.
2828
*
2929
* If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented.
3030
* If V8 coverage is _not_ active, and this is `false`. Jest will instrument the code returned by this transformer using Babel.
@@ -59,7 +59,7 @@ interface SyncTransformer<OptionType = unknown> {
5959

6060
interface AsyncTransformer<OptionType = unknown> {
6161
/**
62-
* Indicates if the transformer is capabale of instrumenting the code for code coverage.
62+
* Indicates if the transformer is capable of instrumenting the code for code coverage.
6363
*
6464
* If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented.
6565
* If V8 coverage is _not_ active, and this is `false`. Jest will instrument the code returned by this transformer using Babel.
@@ -120,7 +120,7 @@ type TransformedSource =
120120
| {code: string; map?: RawSourceMap | string | null}
121121
| string;
122122

123-
// Config.ProjectConfig can be seen in in code [here](https://github.com/facebook/jest/blob/v26.6.3/packages/jest-types/src/Config.ts#L323)
123+
// Config.ProjectConfig can be seen in code [here](https://github.com/facebook/jest/blob/v26.6.3/packages/jest-types/src/Config.ts#L323)
124124
// RawSourceMap comes from [`source-map`](https://github.com/mozilla/source-map/blob/0.6.1/source-map.d.ts#L6-L12)
125125
```
126126

website/versioned_docs/version-27.2/CodeTransformation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You can write your own transformer. The API of a transformer is as follows:
2424
```ts
2525
interface SyncTransformer<OptionType = unknown> {
2626
/**
27-
* Indicates if the transformer is capabale of instrumenting the code for code coverage.
27+
* Indicates if the transformer is capable of instrumenting the code for code coverage.
2828
*
2929
* If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented.
3030
* If V8 coverage is _not_ active, and this is `false`. Jest will instrument the code returned by this transformer using Babel.
@@ -59,7 +59,7 @@ interface SyncTransformer<OptionType = unknown> {
5959

6060
interface AsyncTransformer<OptionType = unknown> {
6161
/**
62-
* Indicates if the transformer is capabale of instrumenting the code for code coverage.
62+
* Indicates if the transformer is capable of instrumenting the code for code coverage.
6363
*
6464
* If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented.
6565
* If V8 coverage is _not_ active, and this is `false`. Jest will instrument the code returned by this transformer using Babel.
@@ -120,7 +120,7 @@ type TransformedSource =
120120
| {code: string; map?: RawSourceMap | string | null}
121121
| string;
122122

123-
// Config.ProjectConfig can be seen in in code [here](https://github.com/facebook/jest/blob/v26.6.3/packages/jest-types/src/Config.ts#L323)
123+
// Config.ProjectConfig can be seen in code [here](https://github.com/facebook/jest/blob/v26.6.3/packages/jest-types/src/Config.ts#L323)
124124
// RawSourceMap comes from [`source-map`](https://github.com/mozilla/source-map/blob/0.6.1/source-map.d.ts#L6-L12)
125125
```
126126

0 commit comments

Comments
 (0)