File tree Expand file tree Collapse file tree 7 files changed +1930
-399
lines changed
Expand file tree Collapse file tree 7 files changed +1930
-399
lines changed Original file line number Diff line number Diff line change 4444 - checkout-and-restore-cache
4545 - run : yarn install
4646 - run : yarn build
47- - run : yarn test
47+ - run : yarn test --coverage
4848
4949workflows :
5050 build-and-deploy :
Original file line number Diff line number Diff line change 1-
1+ sonar.projectKey =typescript-string-operations
2+ sonar.test =tests
3+ sonar.test.inclusions =**/*.test.ts
4+ sonar.javascript.lcov.reportPaths =./coverage/lcov.info
5+ sonar.exclusions =node_modules
6+ sonar.qualitygate.wait =true
Original file line number Diff line number Diff line change 1+ /** @type {import('ts-jest').JestConfigWithTsJest } */
2+ module . exports = {
3+ testEnvironment : 'node' ,
4+ roots : [ '<rootDir>/tests' ] ,
5+ testMatch : [ '**/*.test.ts' ] ,
6+ preset : 'ts-jest' ,
7+ } ;
Original file line number Diff line number Diff line change 99 " index.d.ts"
1010 ],
1111 "scripts" : {
12- "test" : " mocha -r ts-node/register tests/**/tests.ts " ,
12+ "test" : " jest " ,
1313 "build" : " tsc; uglifyjs ./dist/index.js --compress -o ./dist/index.js" ,
1414 "lint" : " eslint ."
1515 },
2222 " string builder" ,
2323 " angular"
2424 ],
25- "author" : " Sven Ulrich <mail@sven-ulrich.net> (sven-ulrich.net) " ,
25+ "author" : " sevensc " ,
2626 "license" : " MIT" ,
2727 "bugs" : {
2828 "url" : " https://github.com/sevensc/typescript-string-operations/issues"
2929 },
3030 "homepage" : " https://github.com/sevensc/typescript-string-operations#readme" ,
3131 "devDependencies" : {
32- "@types/chai" : " ^4.3.9" ,
33- "@types/mocha" : " ^10.0.3" ,
32+ "@types/jest" : " ^29.5.6" ,
3433 "@types/node" : " ^20.8.9" ,
3534 "@typescript-eslint/eslint-plugin" : " ^6.9.0" ,
3635 "@typescript-eslint/parser" : " ^6.9.0" ,
37- "chai" : " ^4.3.10" ,
3836 "eslint" : " ^8.52.0" ,
39- "mocha" : " ^10.2.0" ,
37+ "jest" : " ^29.7.0" ,
38+ "ts-jest" : " ^29.1.1" ,
4039 "ts-node" : " ^10.9.1" ,
4140 "typescript" : " ^5.2.2" ,
4241 "uglify-js" : " ^3.17.4"
You can’t perform that action at this time.
0 commit comments