tests: added jest

This commit is contained in:
원더 2021-01-19 22:02:33 +09:00
parent 2283f57bce
commit 4e5832cb83
2 changed files with 7 additions and 0 deletions

4
jest.config.js Normal file
View File

@ -0,0 +1,4 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
}

View File

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