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.
This commit is contained in:
John Hildenbiddle
2020-07-21 11:38:50 -04:00
parent b73f8636ba
commit 38b01358f3
+1
View File
@@ -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",