Files
railtrack-pro/jest.config.js
Railtrack Pro Dev 7191519b95
Railtrack Pro Tests / Code Quality Check (pull_request) Has been cancelled
Railtrack Pro Tests / Code Coverage Check (pull_request) Has been cancelled
Railtrack Pro Tests / Run Test Suite (pull_request) Has been cancelled
test: add Jest configuration and fix test path resolution
- Add jest.config.js with proper Node.js environment configuration
- Fix train.test.js to use correct relative path: '../../js/train.js'
- Add module.exports to train.js for Node.js module loading
- Update package.json with proper test scripts (test:unit, test:e2e, test:coverage)
2026-03-13 21:21:56 +00:00

14 lines
319 B
JavaScript

module.exports = {
testEnvironment: 'node',
testMatch: ['**/test/**/*.test.js'],
verbose: true,
clearMocks: true,
resetModules: true,
coverageReporters: ['text', 'lcov', 'html'],
collectCoverageFrom: [
'js/**/*.js',
'!js/**/__tests__/**',
'!js/**/*.test.js'
]
};