Revision 4cf45e5ab15cfeafd9fceb65b243a8b03fc3c2f1 authored by MicDZ on 23 January 2024, 11:25:14 UTC, committed by GitHub on 23 January 2024, 11:25:14 UTC
1 parent 8a81868
Raw File
jest.config.cjs
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2023 CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

const { defaults } = require('jest-config');

module.exports = {
    testEnvironment: 'jsdom',
    coverageDirectory: 'reports/coverage',
    coverageReporters: ['json', ['lcov', { projectRoot: '../' }]],
    moduleFileExtensions: [...defaults.moduleFileExtensions, 'ts', 'tsx'],
    reporters: ['default', ['jest-junit', { outputDirectory: 'reports/junit' }]],
    testMatch: ['**/tests/**/*.cjs'],
    testPathIgnorePatterns: ['/node_modules/', '/tests/mocks/*'],
    automock: false,
};
back to top