diff --git a/jest.config.js b/jest.config.js index 1f82fea..78ab3d7 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,4 +1,6 @@ // eslint-disable-next-line no-undef module.exports = { + clearMocks: true, + coverageDirectory: "coverage", testEnvironment: "jsdom", }; diff --git a/package.json b/package.json index de5ec4b..4e9941b 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "lint:fix:md": "prettier --write '*.md'", "lint:fix:package": "prettier-package-json --write package.json", "lint:fix:ts": "eslint --fix './src/**/*.ts{,x}'", - "test": "yarn tsc && jest --testTimeout 5000 --rootDir dist", + "test": "jest src/*", "test:ci": "yarn test --coverage", "typecheck": "yarn tsc --noEmit", "typecheck:watch": "yarn typecheck --watch",