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" } }