init (#22752)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
af4c98cdf9
Коммит
3f6452bdf5
@@ -1,4 +1,3 @@
|
|||||||
e2e/results
|
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
lib
|
lib
|
||||||
|
|||||||
@@ -2,22 +2,19 @@
|
|||||||
"root": true,
|
"root": true,
|
||||||
"extends": [
|
"extends": [
|
||||||
"plugin:mattermost/react",
|
"plugin:mattermost/react",
|
||||||
"plugin:cypress/recommended",
|
|
||||||
"plugin:react-hooks/recommended"
|
"plugin:react-hooks/recommended"
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"@babel/eslint-plugin",
|
"@babel/eslint-plugin",
|
||||||
"mattermost",
|
"mattermost",
|
||||||
"import",
|
"import",
|
||||||
"cypress",
|
|
||||||
"no-only-tests",
|
"no-only-tests",
|
||||||
"@typescript-eslint",
|
"@typescript-eslint",
|
||||||
"formatjs"
|
"formatjs"
|
||||||
],
|
],
|
||||||
"parser": "@typescript-eslint/parser",
|
"parser": "@typescript-eslint/parser",
|
||||||
"env": {
|
"env": {
|
||||||
"jest": true,
|
"jest": true
|
||||||
"cypress/globals": true
|
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"import/resolver": "webpack",
|
"import/resolver": "webpack",
|
||||||
@@ -166,17 +163,6 @@
|
|||||||
"no-process-env": 0,
|
"no-process-env": 0,
|
||||||
"prefer-arrow-callback": 0
|
"prefer-arrow-callback": 0
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"files": ["e2e/**"],
|
|
||||||
"rules": {
|
|
||||||
"@babel/no-unused-expressions": 0,
|
|
||||||
"func-names": 0,
|
|
||||||
"import/no-unresolved": 0,
|
|
||||||
"max-nested-callbacks": 0,
|
|
||||||
"no-process-env": 0,
|
|
||||||
"no-unused-expressions": 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"GomodMainOnly": true,
|
"GomodMainOnly": true,
|
||||||
"GomodExcludes": "_tests/|[-_]generators?$|^plugin/checker$",
|
"GomodExcludes": "_tests/|[-_]generators?$|^plugin/checker$",
|
||||||
"NpmExcludes": "/e2e$",
|
|
||||||
"GradlePath": "./gradlew:../gradlew"
|
"GradlePath": "./gradlew:../gradlew"
|
||||||
},
|
},
|
||||||
"filters": [
|
"filters": [
|
||||||
|
|||||||
@@ -6,58 +6,6 @@ export NODE_OPTIONS=--max-old-space-size=4096
|
|||||||
i18n-extract: ## Extract strings for translation from the source code
|
i18n-extract: ## Extract strings for translation from the source code
|
||||||
npm run i18n-extract
|
npm run i18n-extract
|
||||||
|
|
||||||
e2e/playwright/node_modules:
|
|
||||||
@echo Install Playwright and its dependencies
|
|
||||||
cd e2e/playwright && npm install
|
|
||||||
|
|
||||||
.PHONY: e2e-test
|
|
||||||
e2e-test:
|
|
||||||
@echo E2E: Running mattermost-mysql-e2e
|
|
||||||
@if [ $(shell docker ps -a | grep -ci mattermost-mysql-e2e) -eq 0 ]; then \
|
|
||||||
echo starting mattermost-mysql-e2e; \
|
|
||||||
docker run --name mattermost-mysql-e2e -p 35476:3306 -e MYSQL_ROOT_PASSWORD=mostest \
|
|
||||||
-e MYSQL_USER=mmuser -e MYSQL_PASSWORD=mostest -e MYSQL_DATABASE=mattermost_test -d mysql:5.7 > /dev/null; \
|
|
||||||
elif [ $(shell docker ps | grep -ci mattermost-mysql-e2e) -eq 0 ]; then \
|
|
||||||
echo restarting mattermost-mysql-e2e; \
|
|
||||||
docker start mattermost-mysql-e2e > /dev/null; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd $(BUILD_SERVER_DIR) && [[ -f config/config.json ]] && \
|
|
||||||
cp config/config.json config/config-backup.json && make config-reset || \
|
|
||||||
echo "config.json not found" && make config-reset
|
|
||||||
|
|
||||||
@echo E2E: Starting the server
|
|
||||||
cd $(BUILD_SERVER_DIR) && $(MAKE) run
|
|
||||||
|
|
||||||
@echo E2E: Generating test data
|
|
||||||
cd $(BUILD_SERVER_DIR) && $(MAKE) test-data
|
|
||||||
|
|
||||||
@echo E2E: Running end-to-end testing
|
|
||||||
cd e2e && npm install && npm run cypress:run
|
|
||||||
|
|
||||||
@echo E2E: Stoppping the server
|
|
||||||
cd $(BUILD_SERVER_DIR) && $(MAKE) stop
|
|
||||||
|
|
||||||
@echo E2E: stopping mattermost-mysql-e2e
|
|
||||||
docker stop mattermost-mysql-e2e > /dev/null
|
|
||||||
|
|
||||||
cd $(BUILD_SERVER_DIR) && [[ -f config/config-backup.json ]] && \
|
|
||||||
cp config/config-backup.json config/config.json && echo "revert local config.json" || \
|
|
||||||
echo "config-backup.json not found" && sed -i'' -e 's|"DataSource": ".*"|"DataSource": "mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTimeout=30s"|g' config/config.json
|
|
||||||
|
|
||||||
@echo E2E: Tests completed
|
|
||||||
|
|
||||||
.PHONY: clean-e2e
|
|
||||||
clean-e2e:
|
|
||||||
@if [ $(shell docker ps -a | grep -ci mattermost-mysql-e2e) -eq 1 ]; then \
|
|
||||||
echo stopping mattermost-mysql-e2e; \
|
|
||||||
docker stop mattermost-mysql-e2e > /dev/null; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd $(BUILD_SERVER_DIR) && [[ -f config/config-backup.json ]] && \
|
|
||||||
cp config/config-backup.json config/config.json && echo "revert local config.json" || \
|
|
||||||
echo "config-backup.json not found" && sed -i'' -e 's|"DataSource": ".*"|"DataSource": "mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8\u0026readTimeout=30s\u0026writeTimeout=30s"|g' config/config.json
|
|
||||||
|
|
||||||
.PHONY: emojis
|
.PHONY: emojis
|
||||||
emojis: ## Creates emoji JSON, JSX and Go files and extracts emoji images from the system font
|
emojis: ## Creates emoji JSON, JSX and Go files and extracts emoji images from the system font
|
||||||
SERVER_DIR=$(BUILD_SERVER_DIR) npm run make-emojis
|
SERVER_DIR=$(BUILD_SERVER_DIR) npm run make-emojis
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
snapshotSerializers: ['enzyme-to-json/serializer'],
|
snapshotSerializers: ['enzyme-to-json/serializer'],
|
||||||
testPathIgnorePatterns: ['/node_modules/', '/e2e/'],
|
testPathIgnorePatterns: ['/node_modules/'],
|
||||||
clearMocks: true,
|
clearMocks: true,
|
||||||
collectCoverageFrom: [
|
collectCoverageFrom: [
|
||||||
'actions/src/**/*.{js,jsx,ts,tsx}',
|
'actions/src/**/*.{js,jsx,ts,tsx}',
|
||||||
@@ -17,7 +17,6 @@ const config = {
|
|||||||
'selectors/src/**/*.{js,jsx,ts,tsx}',
|
'selectors/src/**/*.{js,jsx,ts,tsx}',
|
||||||
'stores/src/**/*.{js,jsx,ts,tsx}',
|
'stores/src/**/*.{js,jsx,ts,tsx}',
|
||||||
'utils/src/**/*.{js,jsx,ts,tsx}',
|
'utils/src/**/*.{js,jsx,ts,tsx}',
|
||||||
'!e2e/**',
|
|
||||||
],
|
],
|
||||||
coverageReporters: ['lcov', 'text-summary'],
|
coverageReporters: ['lcov', 'text-summary'],
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
|
|||||||
@@ -169,7 +169,6 @@
|
|||||||
"enzyme-to-json": "3.6.2",
|
"enzyme-to-json": "3.6.2",
|
||||||
"eslint": "7.32.0",
|
"eslint": "7.32.0",
|
||||||
"eslint-import-resolver-webpack": "0.13.2",
|
"eslint-import-resolver-webpack": "0.13.2",
|
||||||
"eslint-plugin-cypress": "2.11.3",
|
|
||||||
"eslint-plugin-formatjs": "4.3.4",
|
"eslint-plugin-formatjs": "4.3.4",
|
||||||
"eslint-plugin-header": "3.1.1",
|
"eslint-plugin-header": "3.1.1",
|
||||||
"eslint-plugin-import": "2.23.4",
|
"eslint-plugin-import": "2.23.4",
|
||||||
|
|||||||
@@ -28,8 +28,6 @@
|
|||||||
"reselect": ["packages/reselect/src"],
|
"reselect": ["packages/reselect/src"],
|
||||||
"@mui/styled-engine": ["./node_modules/@mui/styled-engine-sc"],
|
"@mui/styled-engine": ["./node_modules/@mui/styled-engine-sc"],
|
||||||
"!!file-loader*": ["utils/empty-string"],
|
"!!file-loader*": ["utils/empty-string"],
|
||||||
"@e2e-support/*": ["e2e/playwright/support/*"],
|
|
||||||
"@e2e-test.config": ["e2e/playwright/test.config.ts"]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
|
|||||||
23
webapp/package-lock.json
сгенерированный
23
webapp/package-lock.json
сгенерированный
@@ -3905,7 +3905,6 @@
|
|||||||
"enzyme-to-json": "3.6.2",
|
"enzyme-to-json": "3.6.2",
|
||||||
"eslint": "7.32.0",
|
"eslint": "7.32.0",
|
||||||
"eslint-import-resolver-webpack": "0.13.2",
|
"eslint-import-resolver-webpack": "0.13.2",
|
||||||
"eslint-plugin-cypress": "2.11.3",
|
|
||||||
"eslint-plugin-formatjs": "4.3.4",
|
"eslint-plugin-formatjs": "4.3.4",
|
||||||
"eslint-plugin-header": "3.1.1",
|
"eslint-plugin-header": "3.1.1",
|
||||||
"eslint-plugin-import": "2.23.4",
|
"eslint-plugin-import": "2.23.4",
|
||||||
@@ -17819,18 +17818,6 @@
|
|||||||
"eslint": ">=4.0.0"
|
"eslint": ">=4.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint-plugin-cypress": {
|
|
||||||
"version": "2.11.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-2.11.3.tgz",
|
|
||||||
"integrity": "sha512-hOoAid+XNFtpvOzZSNWP5LDrQBEJwbZwjib4XJ1KcRYKjeVj0mAmPmucG4Egli4j/aruv+Ow/acacoloWWCl9Q==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"globals": "^11.12.0"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"eslint": ">= 3.2.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/eslint-plugin-formatjs": {
|
"node_modules/eslint-plugin-formatjs": {
|
||||||
"version": "4.3.4",
|
"version": "4.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-formatjs/-/eslint-plugin-formatjs-4.3.4.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-formatjs/-/eslint-plugin-formatjs-4.3.4.tgz",
|
||||||
@@ -50096,15 +50083,6 @@
|
|||||||
"eslint-rule-composer": "^0.3.0"
|
"eslint-rule-composer": "^0.3.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint-plugin-cypress": {
|
|
||||||
"version": "2.11.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-2.11.3.tgz",
|
|
||||||
"integrity": "sha512-hOoAid+XNFtpvOzZSNWP5LDrQBEJwbZwjib4XJ1KcRYKjeVj0mAmPmucG4Egli4j/aruv+Ow/acacoloWWCl9Q==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"globals": "^11.12.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"eslint-plugin-formatjs": {
|
"eslint-plugin-formatjs": {
|
||||||
"version": "4.3.4",
|
"version": "4.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-formatjs/-/eslint-plugin-formatjs-4.3.4.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-formatjs/-/eslint-plugin-formatjs-4.3.4.tgz",
|
||||||
@@ -55129,7 +55107,6 @@
|
|||||||
"enzyme-to-json": "3.6.2",
|
"enzyme-to-json": "3.6.2",
|
||||||
"eslint": "7.32.0",
|
"eslint": "7.32.0",
|
||||||
"eslint-import-resolver-webpack": "0.13.2",
|
"eslint-import-resolver-webpack": "0.13.2",
|
||||||
"eslint-plugin-cypress": "2.11.3",
|
|
||||||
"eslint-plugin-formatjs": "4.3.4",
|
"eslint-plugin-formatjs": "4.3.4",
|
||||||
"eslint-plugin-header": "3.1.1",
|
"eslint-plugin-header": "3.1.1",
|
||||||
"eslint-plugin-import": "2.23.4",
|
"eslint-plugin-import": "2.23.4",
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user