From f947459af7882eff33cbac13e988fc8828db5c5a Mon Sep 17 00:00:00 2001 From: Dmitriy Fishman Date: Thu, 4 Nov 2021 12:47:45 +0200 Subject: [PATCH 1/2] docs: fix typos in CodeTransformation.md --- docs/CodeTransformation.md | 6 +++--- website/versioned_docs/version-27.0/CodeTransformation.md | 6 +++--- website/versioned_docs/version-27.1/CodeTransformation.md | 6 +++--- website/versioned_docs/version-27.2/CodeTransformation.md | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/CodeTransformation.md b/docs/CodeTransformation.md index 4dc04986b93a..8da5d7a72bc8 100644 --- a/docs/CodeTransformation.md +++ b/docs/CodeTransformation.md @@ -24,7 +24,7 @@ You can write your own transformer. The API of a transformer is as follows: ```ts interface SyncTransformer { /** - * Indicates if the transformer is capabale of instrumenting the code for code coverage. + * Indicates if the transformer is capable of instrumenting the code for code coverage. * * If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented. * 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 { interface AsyncTransformer { /** - * Indicates if the transformer is capabale of instrumenting the code for code coverage. + * Indicates if the transformer is capable of instrumenting the code for code coverage. * * If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented. * 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 = | {code: string; map?: RawSourceMap | string | null} | string; -// 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) +// Config.ProjectConfig can be seen in code [here](https://github.com/facebook/jest/blob/v26.6.3/packages/jest-types/src/Config.ts#L323) // RawSourceMap comes from [`source-map`](https://github.com/mozilla/source-map/blob/0.6.1/source-map.d.ts#L6-L12) ``` diff --git a/website/versioned_docs/version-27.0/CodeTransformation.md b/website/versioned_docs/version-27.0/CodeTransformation.md index 4dc04986b93a..8da5d7a72bc8 100644 --- a/website/versioned_docs/version-27.0/CodeTransformation.md +++ b/website/versioned_docs/version-27.0/CodeTransformation.md @@ -24,7 +24,7 @@ You can write your own transformer. The API of a transformer is as follows: ```ts interface SyncTransformer { /** - * Indicates if the transformer is capabale of instrumenting the code for code coverage. + * Indicates if the transformer is capable of instrumenting the code for code coverage. * * If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented. * 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 { interface AsyncTransformer { /** - * Indicates if the transformer is capabale of instrumenting the code for code coverage. + * Indicates if the transformer is capable of instrumenting the code for code coverage. * * If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented. * 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 = | {code: string; map?: RawSourceMap | string | null} | string; -// 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) +// Config.ProjectConfig can be seen in code [here](https://github.com/facebook/jest/blob/v26.6.3/packages/jest-types/src/Config.ts#L323) // RawSourceMap comes from [`source-map`](https://github.com/mozilla/source-map/blob/0.6.1/source-map.d.ts#L6-L12) ``` diff --git a/website/versioned_docs/version-27.1/CodeTransformation.md b/website/versioned_docs/version-27.1/CodeTransformation.md index 4dc04986b93a..8da5d7a72bc8 100644 --- a/website/versioned_docs/version-27.1/CodeTransformation.md +++ b/website/versioned_docs/version-27.1/CodeTransformation.md @@ -24,7 +24,7 @@ You can write your own transformer. The API of a transformer is as follows: ```ts interface SyncTransformer { /** - * Indicates if the transformer is capabale of instrumenting the code for code coverage. + * Indicates if the transformer is capable of instrumenting the code for code coverage. * * If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented. * 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 { interface AsyncTransformer { /** - * Indicates if the transformer is capabale of instrumenting the code for code coverage. + * Indicates if the transformer is capable of instrumenting the code for code coverage. * * If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented. * 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 = | {code: string; map?: RawSourceMap | string | null} | string; -// 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) +// Config.ProjectConfig can be seen in code [here](https://github.com/facebook/jest/blob/v26.6.3/packages/jest-types/src/Config.ts#L323) // RawSourceMap comes from [`source-map`](https://github.com/mozilla/source-map/blob/0.6.1/source-map.d.ts#L6-L12) ``` diff --git a/website/versioned_docs/version-27.2/CodeTransformation.md b/website/versioned_docs/version-27.2/CodeTransformation.md index 4dc04986b93a..8da5d7a72bc8 100644 --- a/website/versioned_docs/version-27.2/CodeTransformation.md +++ b/website/versioned_docs/version-27.2/CodeTransformation.md @@ -24,7 +24,7 @@ You can write your own transformer. The API of a transformer is as follows: ```ts interface SyncTransformer { /** - * Indicates if the transformer is capabale of instrumenting the code for code coverage. + * Indicates if the transformer is capable of instrumenting the code for code coverage. * * If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented. * 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 { interface AsyncTransformer { /** - * Indicates if the transformer is capabale of instrumenting the code for code coverage. + * Indicates if the transformer is capable of instrumenting the code for code coverage. * * If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented. * 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 = | {code: string; map?: RawSourceMap | string | null} | string; -// 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) +// Config.ProjectConfig can be seen in code [here](https://github.com/facebook/jest/blob/v26.6.3/packages/jest-types/src/Config.ts#L323) // RawSourceMap comes from [`source-map`](https://github.com/mozilla/source-map/blob/0.6.1/source-map.d.ts#L6-L12) ``` From a3afa711928f2889fef62bac913efd503e2dfa5e Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Mon, 29 Nov 2021 14:11:51 +0100 Subject: [PATCH 2/2] in code as well --- packages/jest-transform/src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jest-transform/src/types.ts b/packages/jest-transform/src/types.ts index cc6f2e3995a4..0e0753c0eb1b 100644 --- a/packages/jest-transform/src/types.ts +++ b/packages/jest-transform/src/types.ts @@ -70,7 +70,7 @@ export interface TransformOptions export interface SyncTransformer { /** - * Indicates if the transformer is capabale of instrumenting the code for code coverage. + * Indicates if the transformer is capable of instrumenting the code for code coverage. * * If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented. * 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 { export interface AsyncTransformer { /** - * Indicates if the transformer is capabale of instrumenting the code for code coverage. + * Indicates if the transformer is capable of instrumenting the code for code coverage. * * If V8 coverage is _not_ active, and this is `true`, Jest will assume the code is instrumented. * If V8 coverage is _not_ active, and this is `false`. Jest will instrument the code returned by this transformer using Babel.