From 4c18a632a0b1fdaacf8c38e1e7f3f7b609f4b7a5 Mon Sep 17 00:00:00 2001 From: Tate Thurston Date: Wed, 19 Jan 2022 22:50:22 -0800 Subject: [PATCH] update jest (#5) Co-authored-by: Tate --- jest.config.js | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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",