Skip to content

Commit

Permalink
fixed test config
Browse files Browse the repository at this point in the history
  • Loading branch information
RoccoC committed May 27, 2024
1 parent 9267026 commit e5d4c71
Show file tree
Hide file tree
Showing 5 changed files with 323 additions and 258 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
},
"extends": ["airbnb-base", "airbnb-typescript/base"],
"parserOptions": {
"project": "./tsconfig.json",
"project": "./tsconfig.eslint.json",
"ecmaVersion": 12,
"sourceType": "module"
},
"ignorePatterns": ["tests/*.js"],
"overrides": [
{
"files": ["*.ts"],
Expand Down
12 changes: 6 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports= {
module.exports = {
clearMocks: true,
collectCoverage: true,
collectCoverageFrom: ["src/index.ts"],
coverageDirectory: "coverage",
moduleFileExtensions: ["js", "ts"],
testEnvironment: "node",
collectCoverageFrom: ['src/index.ts'],
coverageDirectory: 'coverage',
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
transform: {
"^.+\\.ts?$": "ts-jest",
'^.+\\.ts?$': 'ts-jest',
},
};
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,8 @@
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"webpack": "^5.89.0"
},
"peerDependencies": {
"webpack": "^5.0.0"
}
}
Loading

0 comments on commit e5d4c71

Please sign in to comment.