From 8f239940fe2de49b376fea5264dff6d4abd1c732 Mon Sep 17 00:00:00 2001 From: Joel Bradshaw Date: Thu, 13 Oct 2022 16:16:46 -0700 Subject: [PATCH] Reference @jest/reporters version specifically This is actually the package version that matters here, and with `@jest/core`'s `package.json` it's quite possible to have e.g. `jest@26.6.0` but `@jest/reporters@26.6.3`, so referencing the `jest` version will not always give you the correct answer. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 63a8265..1fe23ed 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ module.exports = { // Overriding config.reporters wipes out default reporters, so // we need to restore the summary reporter. // - // NOTE: For jest 26.6.1 or older, this file is located at + // NOTE: For @jest/reporters 26.6.1 or older, this file is located at // @jest/reporters/build/summary_reporter "@jest/reporters/build/SummaryReporter", ], @@ -70,9 +70,9 @@ module.exports = { ## Options -Pass options to the reporter in your jest configuration as follows: +Pass options to the reporter in your jest configuration as follows. Your version of `@jest/reporters` is likely the same as your base Jest version, but it's possible that the minor version is more recent. You can determine your specific version by running `npm ls @jest/reporters`. -### Using Jest 26.6.2 or newer +### Using @jest/reporters 26.6.2 or newer ```js const jestConfig = { @@ -83,7 +83,7 @@ const jestConfig = { }; ``` -### Using Jest 25.1.0-26.6.1 +### Using @jest/reporters 25.1.0-26.6.1 ```js const jestConfig = {