unit test
Showing
This diff is collapsed.
... | ... | @@ -6,7 +6,8 @@ |
"typings": "dist/index.d.ts", | ||
"scripts": { | ||
"lint": "eslint --fix .", | ||
"build": "tsc" | ||
"build": "tsc", | ||
"test": "jest" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
... | ... | @@ -29,6 +30,7 @@ |
"license": "MIT", | ||
"devDependencies": { | ||
"@koishijs/plugin-adapter-onebot": "^4.0.0-beta.2", | ||
"@types/jest": "^27.0.3", | ||
"@types/lodash": "^4.14.177", | ||
"@types/node": "^16.11.9", | ||
"@typescript-eslint/eslint-plugin": "^4.33.0", | ||
... | ... | @@ -36,8 +38,10 @@ |
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.1", | ||
"jest": "^27.4.3", | ||
"koishi": "^4.0.0-beta.3", | ||
"prettier": "^2.4.1", | ||
"ts-jest": "^27.0.7", | ||
"typescript": "^4.5.2", | ||
"ws": "^8.2.3" | ||
}, | ||
... | ... | @@ -50,5 +54,22 @@ |
"schemastery": "^2.0.0", | ||
"schemastery-gen": "2.0.2", | ||
"typed-reflector": "^1.0.5" | ||
}, | ||
"jest": { | ||
"moduleFileExtensions": [ | ||
"js", | ||
"json", | ||
"ts" | ||
], | ||
"rootDir": "tests", | ||
"testRegex": ".*\\.spec\\.ts$", | ||
"transform": { | ||
"^.+\\.(t|j)s$": "ts-jest" | ||
}, | ||
"collectCoverageFrom": [ | ||
"**/*.(t|j)s" | ||
], | ||
"coverageDirectory": "../coverage", | ||
"testEnvironment": "node" | ||
} | ||
} |
tests/inject-using.spec.ts
0 → 100644
Please register or sign in to comment