Add jest and add drone by not complete yet

This commit is contained in:
Sambo Chea 2021-03-13 10:15:52 +07:00
parent a6e0a23306
commit 7b4b438b31
2 changed files with 15 additions and 1 deletions

11
.drone.yml Normal file
View File

@ -0,0 +1,11 @@
kind: pipeline
type: docker
name: ci
steps:
- name: test
- image: node
- command:
- yarn
- yarn migrate
- yarn test

View File

@ -3,13 +3,16 @@
"license": "MIT",
"main": "main.ts",
"devDependencies": {
"@types/jest": "^26.0.20",
"jest": "^26.6.3",
"prisma": "2.18.0",
"ts-node": "9.1.1",
"typescript": "4.2.3"
},
"scripts": {
"dev": "ts-node ./src/main.ts",
"migrate": "prisma migrate dev --name add-profile --preview-feature"
"migrate": "prisma migrate dev --name add-profile --preview-feature",
"test": "jest"
},
"dependencies": {
"@prisma/client": "2.18.0"