Remove usage of mattermost-redux from Cypress (#24652)

* Remove usage of mattermost-redux from Cypress

* Add Webpack preprocessor for Cypress
This commit is contained in:
Harrison Healey 2023-10-05 19:53:52 -04:00 committed by GitHub
parent f5299cd193
commit e440ba0089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 60 additions and 14453 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,7 @@
"@babel/eslint-parser": "7.22.15",
"@babel/eslint-plugin": "7.22.10",
"@cypress/request": "3.0.1",
"@mattermost/client": "9.0.0",
"@mattermost/types": "9.0.0",
"@testing-library/cypress": "10.0.1",
"@types/async": "3.2.21",
@ -54,7 +55,6 @@
"lodash.mapkeys": "4.6.0",
"lodash.without": "4.4.0",
"lodash.xor": "4.5.0",
"mattermost-redux": "5.33.1",
"mime": "3.0.0",
"mime-types": "2.1.35",
"mocha": "10.2.0",
@ -76,6 +76,9 @@
"yargs": "17.7.2"
},
"overrides": {
"@mattermost/client": {
"typescript": "^5.0.4"
},
"@mattermost/types": {
"typescript": "^5.0.4"
}

View File

@ -1,7 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import Client4 from 'mattermost-redux/client/client4';
import {Client4} from '@mattermost/client';
import clientRequest from '../plugins/client_request';