Skip to content

Commit

Permalink
🔧 Configure jest
Browse files Browse the repository at this point in the history
  • Loading branch information
markbrouch committed Dec 20, 2019
1 parent 5e1b810 commit 4003266
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
roots: ["<rootDir>/src"],
testMatch: ["**/__tests__/**/*.+(ts|js)", "**/?(*.)+(spec|test).+(ts|js)"],
transform: {
"^.+\\.ts$": "ts-jest"
}
};
7 changes: 7 additions & 0 deletions src/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@ module.exports = {
extends: [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
overrides: [
{
files: ["__tests__", "**/*.spec.{js,ts}"],
plugins: ["jest"],
extends: ["plugin:jest/recommended", "plugin:jest/style"]
}
]
};

0 comments on commit 4003266

Please sign in to comment.