Files
mostlymatter/webapp/playbooks/jest.config.js
Harrison Healey fb2dac307b MM-51735 Remove references to mattermost-redux from Boards (#22694)
* 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
2023-03-28 15:36:04 -04:00

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;