Skip to content

Commit

Permalink
Fall back to Jest defaults where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkoops committed Sep 1, 2023
1 parent ec3828d commit 532f9cc
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"overrides": [
{
"files": ["lib/**", "test/**"],
"files": ["lib/**"],
"rules": {
"import/no-default-export": "error"
}
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ lib-cov
pids
logs
results
test-results

npm-debug.log
node_modules
Expand Down
5 changes: 0 additions & 5 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ const jestConfig: JestConfigWithTsJest = {
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
testMatch: ["**/test/**/*.test.ts", "**/test/tests.ts"],
coverageProvider: "v8",
coveragePathIgnorePatterns: ["/node_modules/", "./test"],
reporters: ["default", ["jest-junit", { outputDirectory: "test-results/jest" }]],
coverageReporters: ["lcov", "text", "text-summary"],
};

export default jestConfig;
2 changes: 1 addition & 1 deletion test/tests.ts → lib/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { jwtDecode, InvalidTokenError, JwtPayload } from "./../lib/index.js";
import { jwtDecode, InvalidTokenError, JwtPayload } from "./index.js";
import { describe, expect, it } from "@jest/globals";

const token =
Expand Down
43 changes: 0 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"husky": "^8.0.3",
"jest": "^29.6.2",
"jest-environment-jsdom": "^29.6.2",
"jest-junit": "^16.0.0",
"lint-staged": "^14.0.1",
"prettier": "^3.0.2",
"publint": "^0.2.2",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"include": ["./lib"],
"exclude": ["**/*.test.ts"],
"compilerOptions": {
"target": "ES2017",
"declaration": true
Expand Down

0 comments on commit 532f9cc

Please sign in to comment.