From 4e5832cb833e5f67935ad93ee3d9defe5f31ed65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Tue, 19 Jan 2021 22:02:33 +0900 Subject: [PATCH] tests: added jest --- jest.config.js | 4 ++++ package.json | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 jest.config.js diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..2cfafea --- /dev/null +++ b/jest.config.js @@ -0,0 +1,4 @@ +module.exports = { + preset: 'ts-jest', + testEnvironment: 'node', +} \ No newline at end of file diff --git a/package.json b/package.json index 285201b..41fe2d9 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "start": "next start", "lint": "eslint --ext ts,tsx .", "lint:fix": "eslint --ext ts,tsx . --fix", + "test": "jest", "docker": "docker-compose up -d --build" }, "dependencies": { @@ -53,8 +54,10 @@ "eslint-plugin-prettier": "^3.3.1", "eslint-plugin-react": "^7.22.0", "eslint-plugin-react-hooks": "^4.2.0", + "jest": "^26.6.3", "prettier": "^2.2.1", "prettier-plugin-tailwind": "^2.2.8", + "ts-jest": "^26.4.4", "typescript": "^4.1.3" } }