tududi/backend/jest.config.js
Antonis 4fa2aa91bf
Fix E2E test breakage (#380)
* Add logging placeholder functions, fix notes.js uids

* Add UIDs to inbox items. Includes migration.

* Add UID to users.

* Add project UIDs usage.

* Add script that runs specific E2E test(s)

* Only run Chromium E2E tests by default.

* Fix breaking E2E tests

* fixup! Fix breaking E2E tests

---------

Co-authored-by: antanst <>
Co-authored-by: Chris Veleris <chrisveleris@gmail.com>
2025-10-05 16:04:46 +03:00

26 lines
743 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: false,
forceExit: true,
clearMocks: true,
resetMocks: true,
restoreMocks: true,
testTimeout: 30000,
maxWorkers: '100%',
moduleNameMapper: {
'^nanoid$': '<rootDir>/tests/mocks/nanoid.js',
},
};