unit test and remove deprecated things
Showing
This diff is collapsed.
... | ... | @@ -7,6 +7,7 @@ |
"scripts": { | ||
"lint": "eslint --fix .", | ||
"build": "rm -rf dist && tsc", | ||
"test": "jest --passWithNoTests", | ||
"start": "node dist/index.js" | ||
}, | ||
"repository": { | ||
... | ... | @@ -21,6 +22,7 @@ |
}, | ||
"homepage": "https://code.mycard.moe/3rdeye/schemastery-gen", | ||
"devDependencies": { | ||
"@types/jest": "^27.0.3", | ||
"@types/lodash": "^4.14.176", | ||
"@types/node": "^16.11.9", | ||
"@typescript-eslint/eslint-plugin": "^4.33.0", | ||
... | ... | @@ -28,8 +30,10 @@ |
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.1", | ||
"jest": "^27.4.3", | ||
"prettier": "^2.4.1", | ||
"schemastery": "^2.1.0", | ||
"ts-jest": "^27.0.7", | ||
"typescript": "^4.5.2" | ||
}, | ||
"peerDependencies": { | ||
... | ... | @@ -39,5 +43,22 @@ |
"lodash": "^4.17.21", | ||
"reflect-metadata": "^0.1.13", | ||
"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/class-extend.spec.ts
0 → 100644
tests/kschema.spec.ts
0 → 100644
tests/schema-array.spec.ts
0 → 100644
tests/schema-dict.spec.ts
0 → 100644
Please register or sign in to comment