* MM-51735 Remove references to mattermost-redux from Boards * Fix styling and remove debug comments * Update Playbooks Jest config to point to mattermost-redux correctly
19 строки
726 B
JavaScript
19 строки
726 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'],
|
|
moduleNameMapper: {
|
|
'^@mattermost/(components)$': '<rootDir>/../platform/$1/src',
|
|
'^@mattermost/(client)$': '<rootDir>/../platform/$1/src',
|
|
'^@mattermost/(types)/(.*)$': '<rootDir>/../platform/$1/src/$2',
|
|
'^mattermost-redux/(.*)$': '<rootDir>/../channels/src/packages/mattermost-redux/src/$1',
|
|
'^reselect$': '<rootDir>/../channels/src/packages/reselect/src',
|
|
'^src/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
testEnvironment: 'jsdom',
|
|
};
|
|
|
|
module.exports = config; |