22 строки
772 B
JavaScript
22 строки
772 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
/** @type {import('jest').Config} */
|
|
|
|
const config = {
|
|
moduleDirectories: ['src', 'node_modules'],
|
|
testEnvironment: 'jsdom',
|
|
testPathIgnorePatterns: ['/node_modules/', '/.rollup.cache/', '/dist/'],
|
|
clearMocks: true,
|
|
moduleNameMapper: {
|
|
'^@mattermost/(components)$': '<rootDir>/../platform/$1/src',
|
|
'^@mattermost/(client)$': '<rootDir>/../platform/$1/src',
|
|
'^@mattermost/(types)/(.*)$': '<rootDir>/../platform/$1/src/$2',
|
|
'^.+\\.(css|scss)$': 'identity-obj-proxy',
|
|
},
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
|
setupFilesAfterEnv: ['<rootDir>/setup_jest.ts'],
|
|
};
|
|
|
|
module.exports = config;
|