Setup Jest (#57)
All checks were successful
continuous-integration/drone/push Build is passing

- Setup Jest
- Add test scripts
- Configure Drone

Fixes #1

Co-authored-by: Ethan Lane <ethan@vylpes.com>
Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/random-bunny/pulls/57
This commit is contained in:
Vylpes 2023-04-22 13:20:30 +01:00
parent 2ab2fe04fd
commit 06485e0a88
11 changed files with 2510 additions and 115 deletions

View file

@ -17,13 +17,13 @@
],
"dependencies": {
"glob-parent": "^6.0.0",
"got": "^12.0.0",
"got-cjs": "^12.5.4",
"linqts": "^1.14.4"
},
"scripts": {
"build": "tsc",
"start": "ts-node app.ts",
"test": "echo none",
"test": "jest",
"lint": "eslint ."
},
"bugs": {
@ -33,16 +33,20 @@
"homepage": "https://gitea.vylpes.xyz/RabbitLabs/random-bunny",
"funding": "https://ko-fi.com/vylpes",
"devDependencies": {
"@types/eslint": "^8.21.1",
"@types/jest": "^29.4.0",
"@types/node": "^18.0.0",
"eslint": "^8.0.0",
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/parser": "^5.54.0",
"eslint": "^8.35.0",
"jest": "^29.4.3",
"jest-mock-extended": "^3.0.3",
"ts-jest": "^29.0.5",
"ts-mockito": "^2.6.1",
"ts-node": "^10.9.1",
"typescript": "^5.0.0"
},
"files": [
"dist"
],
"type": "module",
"engines": {
"node": ">=14.16"
}
]
}