Add unit tests for role-based access control
Some checks are pending
Docker Test / test (push) Waiting to run

This commit is contained in:
BibaBot 2026-03-17 11:07:20 +00:00
parent 963d8c3aa5
commit f0a9084d59
2 changed files with 68 additions and 24 deletions

View file

@ -1,18 +1,12 @@
export default {
testEnvironment: 'node',
transform: {
'^.+\\.js$': 'babel-jest'
},
testMatch: [
'**/tests/**/*.test.js',
'**/__tests__/**/*.js'
'**/tests/**/*.test.js'
],
moduleNameMapper: {
'^src/(.*)$': '<rootDir>/src/$1',
'^backend/(.*)$': '<rootDir>/$1'
},
transformIgnorePatterns: [
'/node_modules/',
'/backend/src/__tests__/'
]
collectCoverageFrom: [
'src/**/*.js',
'!src/__tests__/**/*.js'
],
coverageDirectory: 'coverage',
verbose: true
};