chore: Update jest configuration for role middleware tests
Some checks are pending
Docker Test / test (push) Waiting to run

This commit is contained in:
BibaBot 2026-03-17 09:07:48 +00:00
parent 387aec880f
commit 95a2d85aa3
3 changed files with 16 additions and 1 deletions

View file

@ -10,5 +10,9 @@ export default {
moduleNameMapper: {
'^src/(.*)$': '<rootDir>/src/$1',
'^backend/(.*)$': '<rootDir>/$1'
}
},
transformIgnorePatterns: [
'/node_modules/',
'/backend/src/'
]
};

View file

@ -12,6 +12,7 @@
"bcryptjs": "^3.0.3",
"dotenv": "^17.3.1",
"express": "^5.2.1",
"helmet": "^8.1.0",
"jsonwebtoken": "^9.0.3",
"mysql2": "^3.18.2",
"path-to-regexp": "^8.3.0",
@ -4835,6 +4836,15 @@
"node": ">= 0.4"
}
},
"node_modules/helmet": {
"version": "8.1.0",
"resolved": "https://registry.npmjs.org/helmet/-/helmet-8.1.0.tgz",
"integrity": "sha512-jOiHyAZsmnr8LqoPGmCjYAaiuWwjAPLgY8ZX2XrmHawt99/u1y6RgrZMTeoPfpUbV96HOalYgz1qzkRbw54Pmg==",
"license": "MIT",
"engines": {
"node": ">=18.0.0"
}
},
"node_modules/html-escaper": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz",

View file

@ -23,6 +23,7 @@
"bcryptjs": "^3.0.3",
"dotenv": "^17.3.1",
"express": "^5.2.1",
"helmet": "^8.1.0",
"jsonwebtoken": "^9.0.3",
"mysql2": "^3.18.2",
"path-to-regexp": "^8.3.0",