From 1489b9fb1e50af2deadf0be2831a31a2cbaadc84 Mon Sep 17 00:00:00 2001 From: Dipendra Upreti Date: Wed, 21 Aug 2024 12:34:00 +0545 Subject: [PATCH 1/3] test: fix running test --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0f643a3..0255719 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", @@ -64,4 +68,4 @@ "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } -} +} \ No newline at end of file From 36c3fcc5a4cdbb0566b2f4c5ab9ebd3223ffcbc1 Mon Sep 17 00:00:00 2001 From: Dipendra Upreti Date: Wed, 21 Aug 2024 12:34:00 +0545 Subject: [PATCH 2/3] test: fix running test --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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", From 82f47a732a774813049eb28a8cc137611a9d32e7 Mon Sep 17 00:00:00 2001 From: Dipendra Upreti Date: Wed, 21 Aug 2024 15:26:52 +0545 Subject: [PATCH 3/3] chore: add test in pre commit --- .husky/pre-commit | 1 + 1 file changed, 1 insertion(+) 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