From b36358ae2a97b2bc4f1090ba892820aeb19c4327 Mon Sep 17 00:00:00 2001 From: michaud Date: Fri, 14 Feb 2020 14:02:33 +0100 Subject: [PATCH] Adjust jest testMatch to work cross platform before this change running tests (npm run test) returns 'No tests found' on windows. As per [jest issue #7914 #issuecomment-464352069](https://github.com/facebook/jest/issues/7914#issuecomment-464352069) changing the [micromatch](https://github.com/micromatch/micromatch#extglobs) glob works on both OS's. There is a proposed solution but the jest code has not changed in that location. --- generators/app/templates/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/app/templates/package.json b/generators/app/templates/package.json index 15a954e7..7375cddb 100644 --- a/generators/app/templates/package.json +++ b/generators/app/templates/package.json @@ -72,7 +72,7 @@ ], "testMatch": [ "/src/**/__tests__/**/*.{js,jsx,ts,tsx}", - "/src/**/?(*.)(spec|test).{js,jsx,ts,tsx}" + "/src/**/*(*.)@(spec|test).{js,jsx,ts,tsx}" ], "testEnvironment": "jsdom", "testURL": "http://localhost",