jellyfin-sdk-typescript/jest.config.js

20 lines
558 B
JavaScript
Raw Normal View History

2021-08-29 05:00:52 +00:00
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
2021-09-16 20:27:30 +00:00
testEnvironment: 'node',
2021-10-15 19:00:53 +00:00
runner: 'groups',
// normalize-url exports an ES module so we need to transform js files
// and change the ignore pattern so it is transformed
preset: 'ts-jest/presets/js-with-ts',
globals: {
'ts-jest': {
tsconfig: { allowJs: true }
}
},
transformIgnorePatterns: [ '/node_modules/(?!(normalize-url)/)' ],
// Coverage options
2021-09-16 20:27:30 +00:00
collectCoverageFrom: [ 'src/**' ],
2021-09-21 14:18:25 +00:00
coveragePathIgnorePatterns: [ '__helpers__', 'generated-client' ]
2021-09-16 04:15:47 +00:00
};