diff --git a/jest.config.json b/jest.config.json index 46831bb..14a31f3 100644 --- a/jest.config.json +++ b/jest.config.json @@ -10,10 +10,7 @@ }, "extensionsToTreatAsEsm": [".ts", ".mts"], "moduleNameMapper": { - "^(\\.{1,2}/.*)\\.mjs$": "$1.mts" + "^(\\.{1,2}/.*)\\.mjs$": "/dist/$1.mjs" }, - "testMatch": ["**/*.test.ts"], - "transform": { - "^.+\\.m?ts$": ["ts-jest", { "useESM": true }] - } + "testMatch": ["**/*.test.ts"] } diff --git a/package.json b/package.json index f24f560..3cfb27a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "bundle": "tsc && ncc build dist/main.mjs -o main", "check": "sort-package-json && prettier --write . !main !README.md && eslint src", - "test": "jest" + "test": "tsc && jest" }, "dependencies": { "@actions/core": "^1.10.1",