mirror of
https://github.com/hanzoai/team.git
synced 2026-10-30 14:49:35 +00:00
* add shard and log heap usage in jest * separate each type of tests * fix code coverage and indicate heap usage to all tests * exercise each 10 times, change channels shard to 4 * revert to single run, fix npm cache and merge/report code coverage with nyc
28 lines
789 B
JavaScript
28 lines
789 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
/** @type {import('jest').Config} */
|
|
|
|
const baseConfig = require('./jest.config.js');
|
|
|
|
const config = {
|
|
...baseConfig,
|
|
displayName: 'mattermost-redux',
|
|
testMatch: [
|
|
'<rootDir>/src/packages/mattermost-redux/src/**/*.test.{js,jsx,ts,tsx}',
|
|
],
|
|
collectCoverageFrom: [
|
|
'src/packages/mattermost-redux/src/**/*.{js,jsx,ts,tsx}',
|
|
],
|
|
coveragePathIgnorePatterns: [
|
|
'/node_modules/',
|
|
'src/packages/mattermost-redux/src/selectors/create_selector',
|
|
],
|
|
reporters: [
|
|
'default',
|
|
['jest-junit', {outputDirectory: 'build', outputName: 'test-results-mattermost-redux.xml'}],
|
|
],
|
|
};
|
|
|
|
module.exports = config;
|