forked from hikoworks/install-vulkan-sdk-action
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathjest.config.cjs
More file actions
24 lines (24 loc) · 815 Bytes
/
Copy pathjest.config.cjs
File metadata and controls
24 lines (24 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
testMatch: ['**/tests/*.test.ts'],
transform: {
'^.+\\.ts$': 'ts-jest'
},
moduleNameMapper: {
'^@actions/cache$': '<rootDir>/tests/__mocks__/cache.ts',
'^@actions/core$': '<rootDir>/tests/__mocks__/core.ts',
'^@actions/http-client$': '<rootDir>/tests/__mocks__/http-client.ts',
'^@actions/tool-cache$': '<rootDir>/tests/__mocks__/tool-cache.ts'
},
setupFilesAfterEnv: ['<rootDir>/tests/jest.setup.ts'],
verbose: true,
collectCoverage: true,
collectCoverageFrom: [
'src/**/*.{js,ts}', // Include all JS/TS files in /src
'!src/**/*.d.ts' // Exclude type definition files
],
coverageDirectory: 'coverage',
coverageReporters: ['json', 'lcov', 'text', 'clover']
}