From 38b01358f3c6b2d4e147133c2833055eec42f1fb Mon Sep 17 00:00:00 2001 From: John Hildenbiddle Date: Tue, 21 Jul 2020 11:38:50 -0400 Subject: [PATCH] Add npm script to run Jest examples Added for new devs who are exploring the examples, as the need for passing --testPathIgnorePatterns is not obvious. This flag is required because the example tests are excluded by default. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 3d587304..b19efef4 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "test:e2e": "start-server-and-test testServer http://localhost:3000 cy:run", "test:jest": "jest", "test:jest-e2e": "jest --selectProjects e2e", + "test:jest-examples": "jest -i ./tests/**/example.test.js --testPathIgnorePatterns", "test:jest-integration": "jest --selectProjects integration", "test:jest-unit": "jest --selectProjects unit", "posttest:e2e": "rimraf cypress/fixtures/docs",