From 87ebc83102f52a364d3226b8594cdfec39e2a6c2 Mon Sep 17 00:00:00 2001 From: Nikita Ovchinnikov Date: Fri, 28 Jan 2022 22:43:11 +0400 Subject: [PATCH 1/2] Fix testMatch option --- .gitignore | 1 + jest.config.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index fd18e84..0241892 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ storybook-static coverage mutation node_modules +storybook-static build-storybook.log # stryker temp files .stryker-tmp diff --git a/jest.config.js b/jest.config.js index 2d94936..003a7ce 100644 --- a/jest.config.js +++ b/jest.config.js @@ -18,6 +18,8 @@ module.exports = { }, }, + testMatch: ['/src/**/?(*.)+(spec|test).[jt]s?(x)'], + // The directory where Jest should output its coverage files coverageDirectory: 'coverage', From 2d414d1f7c6c601b59a390a123af65d8d6c13ae9 Mon Sep 17 00:00:00 2001 From: Nikita Ovchinnikov Date: Mon, 7 Feb 2022 12:22:12 +0400 Subject: [PATCH 2/2] Add info about fix to readme --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 4eed6ce..9b82361 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,12 @@ ## [Full video course](https://www.udemy.com/course/hands-on-reactjs) +## Patches and fixes + +#### Jest "No tests found, exiting with code 1" error on Windows +[Problem description](https://stackoverflow.com/questions/56348126/jest-no-tests-found-exiting-with-code-1-error-on-windows-10-in-react-redux-ap) +[Fix testMatch option](https://github.com/nickovchinnikov/minesweeper/pull/65/files) + ## Section: Introduction ### Minesweeper presentation