- Add unified UID column migration for all entities - Create centralized UID generation utility - Update all models to use standardized UID hooks - Fix route handlers to support UID-based lookups - Update slug utilities for consistent UID extraction - Fix tag tests to use query parameters instead of path params - Configure Jest for better TypeScript support
26 lines
742 B
JavaScript
26 lines
742 B
JavaScript
module.exports = {
|
|
testEnvironment: 'node',
|
|
setupFilesAfterEnv: ['<rootDir>/tests/helpers/setup.js'],
|
|
testMatch: ['<rootDir>/tests/**/*.test.js', '<rootDir>/tests/**/*.spec.js'],
|
|
collectCoverageFrom: [
|
|
'routes/**/*.js',
|
|
'models/**/*.js',
|
|
'middleware/**/*.js',
|
|
'services/**/*.js',
|
|
'!models/index.js',
|
|
'!**/*.test.js',
|
|
'!**/*.spec.js',
|
|
],
|
|
coverageDirectory: 'coverage',
|
|
coverageReporters: ['text', 'lcov', 'html'],
|
|
verbose: true,
|
|
forceExit: true,
|
|
clearMocks: true,
|
|
resetMocks: true,
|
|
restoreMocks: true,
|
|
testTimeout: 30000,
|
|
maxWorkers: '100%',
|
|
moduleNameMapper: {
|
|
'^nanoid$': '<rootDir>/tests/mocks/nanoid.js',
|
|
},
|
|
};
|