Compare commits
2 commits
12b1871f6c
...
b9035c7338
Author | SHA1 | Date | |
---|---|---|---|
b9035c7338 | |||
2815f6ef12 |
6 changed files with 2299 additions and 175 deletions
|
@ -1 +1,5 @@
|
|||
app.ts
|
||||
app.ts
|
||||
|
||||
tests/
|
||||
jest.config.cjs
|
||||
jest.setup.js
|
4
jest.config.cjs
Normal file
4
jest.config.cjs
Normal file
|
@ -0,0 +1,4 @@
|
|||
module.exports = {
|
||||
preset: "ts-jest",
|
||||
setupFiles: [ "./jest.setup.js" ]
|
||||
}
|
3
jest.setup.js
Normal file
3
jest.setup.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
jest.setTimeout(1 * 1000); // 1 second
|
||||
jest.resetModules();
|
||||
jest.resetAllMocks();
|
14
package.json
14
package.json
|
@ -23,8 +23,8 @@
|
|||
"scripts": {
|
||||
"build": "tsc",
|
||||
"start": "ts-node app.ts",
|
||||
"test": "echo none",
|
||||
"lint": "eslint ."
|
||||
"test": "jest",
|
||||
"lint": "eslint"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://gitea.vylpes.xyz/RabbitLabs/random-bunny/issues",
|
||||
|
@ -33,8 +33,16 @@
|
|||
"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": "^7.17.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": "^4.9.5"
|
||||
},
|
||||
|
|
|
@ -73,7 +73,9 @@
|
|||
"./src",
|
||||
],
|
||||
"exclude": [
|
||||
"./tests"
|
||||
"./tests",
|
||||
"jest.config.cjs",
|
||||
"jest.setup.js"
|
||||
],
|
||||
"ts-node": {
|
||||
"esm": true
|
||||
|
|
Loading…
Reference in a new issue