Skip to content

Commit

Permalink
use json for jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-zhang-at-salesforce committed May 10, 2024
1 parent 572e17f commit 3c59b94
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 34 deletions.
34 changes: 0 additions & 34 deletions jest.config.js

This file was deleted.

27 changes: 27 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"displayName": "Unit Tests",
"setupFilesAfterEnv": ["jest-extended", "jest-chain"],
"preset": "ts-jest",
"testMatch": [
"<rootDir>/test/plugin.ts",
"<rootDir>/test/rules/**/*.ts",
"!**/test/rules/shared.ts"
],
"moduleFileExtensions": ["ts", "js", "json"],
"testResultsProcessor": "jest-sonar-reporter",
"testPathIgnorePatterns": ["/node_modules/", "<rootDir>/lib/"],
"moduleDirectories": ["node_modules"],
"collectCoverage": true,
"collectCoverageFrom": ["src/**/*.ts"],
"coverageDirectory": "reports/coverage",
"reporters": [
"default",
[
"jest-junit",
{
"suiteName": "Unit Tests",
"output": "./reports/junit/jest-results.xml"
}
]
]
}

0 comments on commit 3c59b94

Please sign in to comment.