Add unit tests for role middleware
Some checks are pending
Docker Test / test (push) Waiting to run

This commit is contained in:
BibaBot 2026-03-17 07:07:36 +00:00
parent 7a9bf3199a
commit c294e2e9ae
5702 changed files with 465039 additions and 34 deletions

14
backend/jest.config.js Normal file
View file

@ -0,0 +1,14 @@
export default {
testEnvironment: 'node',
transform: {
'^.+\\.js$': 'babel-jest'
},
testMatch: [
'**/tests/**/*.test.js',
'**/__tests__/**/*.js'
],
moduleNameMapper: {
'^src/(.*)$': '<rootDir>/src/$1',
'^backend/(.*)$': '<rootDir>/$1'
}
};