From 35b8d5af0baf76abc8d073388855c2d9616bbf3c Mon Sep 17 00:00:00 2001 From: Alex Kim <45559664+alex-kim-dev@users.noreply.github.com> Date: Mon, 2 May 2022 21:45:17 +0500 Subject: [PATCH] docs(devs-infra): fix the example for enabling diagnostics for test files only (#3489) --- website/docs/getting-started/options/diagnostics.md | 4 ++-- .../version-26.5/getting-started/options/diagnostics.md | 4 ++-- .../version-27.0/getting-started/options/diagnostics.md | 4 ++-- .../version-27.1/getting-started/options/diagnostics.md | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/website/docs/getting-started/options/diagnostics.md b/website/docs/getting-started/options/diagnostics.md index ade8fce2a1..27c849fb2c 100644 --- a/website/docs/getting-started/options/diagnostics.md +++ b/website/docs/getting-started/options/diagnostics.md @@ -70,7 +70,7 @@ module.exports = { globals: { 'ts-jest': { diagnostics: { - exclude: ['**/*.spec.ts'], + exclude: ['!**/*.(spec|test).ts'], }, }, }, @@ -85,7 +85,7 @@ module.exports = { "globals": { "ts-jest": { "diagnostics": { - "exclude": ["**/*.spec.ts"] + "exclude": ["!**/*.(spec|test).ts"] } } } diff --git a/website/versioned_docs/version-26.5/getting-started/options/diagnostics.md b/website/versioned_docs/version-26.5/getting-started/options/diagnostics.md index 176bb0d1a1..ae80b73559 100644 --- a/website/versioned_docs/version-26.5/getting-started/options/diagnostics.md +++ b/website/versioned_docs/version-26.5/getting-started/options/diagnostics.md @@ -71,7 +71,7 @@ module.exports = { globals: { 'ts-jest': { diagnostics: { - exclude: ['**/*.spec.ts'], + exclude: ['!**/*.(spec|test).ts'], }, }, }, @@ -86,7 +86,7 @@ module.exports = { "globals": { "ts-jest": { "diagnostics": { - "exclude": ["**/*.spec.ts"] + "exclude": ["!**/*.(spec|test).ts"] } } } diff --git a/website/versioned_docs/version-27.0/getting-started/options/diagnostics.md b/website/versioned_docs/version-27.0/getting-started/options/diagnostics.md index ade8fce2a1..27c849fb2c 100644 --- a/website/versioned_docs/version-27.0/getting-started/options/diagnostics.md +++ b/website/versioned_docs/version-27.0/getting-started/options/diagnostics.md @@ -70,7 +70,7 @@ module.exports = { globals: { 'ts-jest': { diagnostics: { - exclude: ['**/*.spec.ts'], + exclude: ['!**/*.(spec|test).ts'], }, }, }, @@ -85,7 +85,7 @@ module.exports = { "globals": { "ts-jest": { "diagnostics": { - "exclude": ["**/*.spec.ts"] + "exclude": ["!**/*.(spec|test).ts"] } } } diff --git a/website/versioned_docs/version-27.1/getting-started/options/diagnostics.md b/website/versioned_docs/version-27.1/getting-started/options/diagnostics.md index ade8fce2a1..27c849fb2c 100644 --- a/website/versioned_docs/version-27.1/getting-started/options/diagnostics.md +++ b/website/versioned_docs/version-27.1/getting-started/options/diagnostics.md @@ -70,7 +70,7 @@ module.exports = { globals: { 'ts-jest': { diagnostics: { - exclude: ['**/*.spec.ts'], + exclude: ['!**/*.(spec|test).ts'], }, }, }, @@ -85,7 +85,7 @@ module.exports = { "globals": { "ts-jest": { "diagnostics": { - "exclude": ["**/*.spec.ts"] + "exclude": ["!**/*.(spec|test).ts"] } } }