From bc818b554da9a5a241bde05f1a9e4c002713f25c Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Fri, 2 Apr 2021 12:59:55 +0200 Subject: [PATCH] docs: fix error in transformIgnorePatterns (#11227) --- docs/Configuration.md | 2 +- website/versioned_docs/version-25.x/Configuration.md | 2 +- website/versioned_docs/version-26.x/Configuration.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Configuration.md b/docs/Configuration.md index c1dcd45f6df6..cb904f866747 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -1305,7 +1305,7 @@ If the tests are written using [native ESM](ECMAScriptModules.md) the transforme Default: `["/node_modules/", "\\.pnp\\.[^\\\/]+$"]` -An array of regexp pattern strings that are matched against all source file paths before transformation. If the test path matches any of the patterns, it will not be transformed. +An array of regexp pattern strings that are matched against all source file paths before transformation. If the file path matches any of the patterns, it will not be transformed. These pattern strings match against the full path. Use the `` string token to include the path to your project's root directory to prevent it from accidentally ignoring all of your files in different environments that may have different root directories. diff --git a/website/versioned_docs/version-25.x/Configuration.md b/website/versioned_docs/version-25.x/Configuration.md index 170640b0a181..cb77f8d8555c 100644 --- a/website/versioned_docs/version-25.x/Configuration.md +++ b/website/versioned_docs/version-25.x/Configuration.md @@ -1193,7 +1193,7 @@ _Note: when adding additional code transformers, this will overwrite the default Default: `["/node_modules/"]` -An array of regexp pattern strings that are matched against all source file paths before transformation. If the test path matches any of the patterns, it will not be transformed. +An array of regexp pattern strings that are matched against all source file paths before transformation. If the file path matches any of the patterns, it will not be transformed. These pattern strings match against the full path. Use the `` string token to include the path to your project's root directory to prevent it from accidentally ignoring all of your files in different environments that may have different root directories. diff --git a/website/versioned_docs/version-26.x/Configuration.md b/website/versioned_docs/version-26.x/Configuration.md index 42688e1fadda..8b9eb32a27a8 100644 --- a/website/versioned_docs/version-26.x/Configuration.md +++ b/website/versioned_docs/version-26.x/Configuration.md @@ -1285,7 +1285,7 @@ _Note: when adding additional code transformers, this will overwrite the default Default: `["/node_modules/", "\\.pnp\\.[^\\\/]+$"]` -An array of regexp pattern strings that are matched against all source file paths before transformation. If the test path matches any of the patterns, it will not be transformed. +An array of regexp pattern strings that are matched against all source file paths before transformation. If the file path matches any of the patterns, it will not be transformed. These pattern strings match against the full path. Use the `` string token to include the path to your project's root directory to prevent it from accidentally ignoring all of your files in different environments that may have different root directories.