mirror of
https://github.com/jellyfin/jellyfin-sdk-typescript.git
synced 2024-11-27 00:01:19 +00:00
20 lines
558 B
JavaScript
20 lines
558 B
JavaScript
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
module.exports = {
|
|
testEnvironment: 'node',
|
|
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
|
|
collectCoverageFrom: [ 'src/**' ],
|
|
coveragePathIgnorePatterns: [ '__helpers__', 'generated-client' ]
|
|
};
|