diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..5661fca --- /dev/null +++ b/jest.config.js @@ -0,0 +1,7 @@ +module.exports = { + roots: ["/src"], + testMatch: ["**/__tests__/**/*.+(ts|js)", "**/?(*.)+(spec|test).+(ts|js)"], + transform: { + "^.+\\.ts$": "ts-jest" + } +}; diff --git a/src/.eslintrc.js b/src/.eslintrc.js index 18bc5f7..aa3e6f0 100644 --- a/src/.eslintrc.js +++ b/src/.eslintrc.js @@ -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"] + } ] };