mattermost/webapp/platform/client/jest.config.js
Harrison Healey ecd16ec9ef
MM-67137 Fix references to window in client package (#35195)
* MM-67137 Fix references to window in client package

* Fix Client tests running on compiled code

* Mostly revert changes to limit the chance of accidental changes
2026-02-10 09:41:32 -05:00

19 lines
565 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/** @type {import('jest').Config} */
module.exports = {
moduleNameMapper: {
'^@mattermost/types/(.*)$': '<rootDir>/../types/src/$1',
},
testPathIgnorePatterns: ['/node_modules/', '/lib/'],
setupFiles: ['<rootDir>/setup_jest.ts'],
collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx}',
],
coveragePathIgnorePatterns: [
'/node_modules/',
],
coverageReporters: ['json', 'lcov', 'text-summary'],
};