PromucFlow_constructor/app/client
Valera Melnikov 5e24c352bf
chore: test performance (#23799)
## Description
1. Added a parameter --maxWorkers=50% to run tests. Is the [official
recommendation](https://jestjs.io/docs/cli#--maxworkersnumstring) for
running tests in CI. This allows you to run tests in CI about **60
seconds** faster.
2. Deleted mocha package because we use jest to run test.

For history: 
I tried to use [@swc/jest](https://swc.rs/docs/usage/jest) to speed up
the tests, but it didn't show any improvements since we have a lot of
long tests(see pict) that need to be improved point-by-point. Also, this
approach does not work with imports of the type import * as _ from "";
[read more here](https://github.com/swc-project/swc/issues/5205)

See code example
[here](https://github.com/appsmithorg/appsmith/pull/23797/files).

<img width="703" alt="Снимок экрана 2023-05-29 в 10 36 27"
src="https://github.com/appsmithorg/appsmith/assets/11555074/37a2a065-124b-4c16-a5ec-e7868dc2dc13">


#### Type of change
- Chore (housekeeping or task changes that don't impact user perception)

## Testing
>
#### How Has This Been Tested?
> Please describe the tests that you ran to verify your changes. Also
list any relevant details for your test configuration.
> Delete anything that is not relevant
- [x] Manual
- [x] Jest
- [ ] Cypress

## Checklist:
#### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Test-plan-implementation#speedbreaker-features-to-consider-for-every-change)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans/_edit#areas-of-interest)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed

---------

Co-authored-by: Valera Melnikov <melnikov.vv@greendatasoft.ru>
2023-05-29 15:28:51 +03:00
..
.husky chore: improve husky and lint-staged checks (#21679) 2023-03-23 17:02:18 +05:30
.yarn chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
cypress test: Cypress | Fix PostWindowMessage_spec (#23807) 2023-05-29 16:49:53 +05:30
docker chore: Remove login and signup related env variables from client (#22891) 2023-05-16 14:34:48 +05:30
generators chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
packages feat: peek overlay nested properties + perf improvements (#23414) 2023-05-26 17:12:10 +05:30
perf ci: run fat container docker inside perf tests and update setup-perf-test workflow to use localhost for accessing dev environment (#20280) 2023-02-07 15:56:41 +05:30
public chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
src fix: Updating the to function in embed snippet tab component (#23831) 2023-05-29 16:48:36 +05:30
test feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
typings fix: display name validation (client) (#22938) 2023-05-04 18:29:57 +05:30
webpack feat: Bundle optimization and first load improvements (#21667) 2023-05-11 10:56:03 +05:30
.babelrc feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
.dockerignore
.editorconfig
.eslintrc.base.json chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
.eslintrc.js chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
.gitignore chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
.lintstagedrc chore: improve husky and lint-staged checks (#21679) 2023-03-23 17:02:18 +05:30
.nvmrc
.prettierignore ci: Add lint check to the build step (#21442) 2023-03-20 22:50:44 +05:30
.prettierrc chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
.sentryclirc
.yarnrc.yml chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
build.sh ci: move yarn prebuild command to build.sh (#23227) 2023-05-11 18:35:32 +05:30
craco.build.config.js fix: don’t cache icons by the service worker (#23558) 2023-05-24 12:50:26 +05:30
craco.common.config.js feat: Bundle optimization and first load improvements (#21667) 2023-05-11 10:56:03 +05:30
craco.dev.config.js chore : disable react overlay for warnings/error in dev mode (#23620) 2023-05-23 14:54:41 +05:30
cypress_ci-toremove.json feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
cypress_ci.config.ts test: Cypress version upgrade Cy 11.2 + Flaky fixes (#23667) 2023-05-24 18:00:39 +05:30
cypress.config.ts chore : disable hot reloading of cypress tests to reduce memory overload (#23621) 2023-05-24 15:48:34 +05:30
Dockerfile
download-assets.js feat: util to serve images locally or via remote url (#22080) 2023-04-10 12:32:31 +05:30
jest.config.js chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
package.json chore: test performance (#23799) 2023-05-29 15:28:51 +03:00
README.md
README.old.md
start-https.sh chore: Fail when backend has a trailing slash (#23437) 2023-05-17 13:56:23 +05:30
tailwind.config.js feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
tsconfig.json chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
tsconfig.path.json
vercel.json
yarn.lock chore: test performance (#23799) 2023-05-29 15:28:51 +03:00

Appsmith Client

This project was bootstrapped with Create React App.

For details on setting up your development machine, please refer to the Setup Guide