From fab5ef3f1bb6daf46dc7caa4d60aef21799a321c Mon Sep 17 00:00:00 2001 From: Breno A Date: Sun, 5 May 2024 14:08:22 -0300 Subject: [PATCH] tests: add jest config for ts --- package.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/package.json b/package.json index bb17c32..88d2b65 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,35 @@ "author": "", "license": "Apache-2.0", "packageManager": "pnpm@9.0.6", + "jest": { + "preset": "ts-jest", + "verbose": true, + "clearMocks": true, + "testEnvironment": "node", + "moduleFileExtensions": [ + "js", + "ts" + ], + "testMatch": [ + "**/*.test.ts" + ], + "testPathIgnorePatterns": [ + "/node_modules/", + "/dist/" + ], + "transform": { + "^.+\\.ts$": "ts-jest" + }, + "coverageReporters": [ + "json-summary", + "text", + "lcov" + ], + "collectCoverage": true, + "collectCoverageFrom": [ + "./src/**" + ] + }, "dependencies": { "@actions/core": "^1.10.1", "@actions/github": "^6.0.0"