Update package.json to include SWC dependencies and refactor Jest configuration; remove unused DevtoolsModule import from app.module.ts for cleaner code.

This commit is contained in:
2024-11-26 04:33:23 +07:00
parent a1ca5c62fb
commit 01c92b2303
2 changed files with 10 additions and 7 deletions

View File

@@ -112,6 +112,8 @@
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
"@stylistic/eslint-plugin-js": "^2.9.0",
"@swc/cli": "^0.5.1",
"@swc/core": "^1.9.3",
"@types/bcryptjs": "^2.4.6",
"@types/express": "^4.17.17",
"@types/jest": "^29.5.2",
@@ -142,13 +144,19 @@
"ws": "^8.18.0"
},
"jest": {
"moduleFileExtensions": ["js", "json", "ts"],
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": ["**/*.(t|j)s"],
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},