diff --git a/.husky/pre-commit b/.husky/pre-commit index 3867a0f..ab4c119 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1,2 @@ npm run lint +npm run test diff --git a/package.json b/package.json index 0f643a3..3f5493e 100644 --- a/package.json +++ b/package.json @@ -27,10 +27,14 @@ "release": "shipjs prepare", "sort-package": "npx sort-package-json", "pretest": "eslint .", - "test": "jest" + "test": "jest --passWithNoTests" }, "jest": { - "testEnvironment": "node" + "testEnvironment": "node", + "testPathIgnorePatterns": [ + "node_modules/", + "generators/.*/templates/" + ] }, "dependencies": { "yeoman-environment": "4.4.1",