From 7b4b438b31e251ebd2a633014700fa7b9c73391f Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Sat, 13 Mar 2021 10:15:52 +0700 Subject: [PATCH] Add jest and add drone by not complete yet --- .drone.yml | 11 +++++++++++ package.json | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..4aad546 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,11 @@ +kind: pipeline +type: docker +name: ci + +steps: + - name: test + - image: node + - command: + - yarn + - yarn migrate + - yarn test \ No newline at end of file diff --git a/package.json b/package.json index db7981f..6d8a321 100644 --- a/package.json +++ b/package.json @@ -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"