PromucFlow_constructor/app/client
Mihir Joshi bce5a0c7c5
chore: Linter check for dangling it.only tests (#23991)
## Description
Dangling it.only tests skips other tests in the file and reduces our
test coverage.

Added rule in .eslintrc to detect it.only calls in test files.
Cypress tests are named as `*_spec.js`, `*_Spec.js`, `*_spec.ts` and
`*_Spec.ts`, whereas other tests follow the `*.test.js|ts|jsx`
convention. So, I added this rule differently for Cypress and Default
ESLint configuration.

#### PR fixes following issue(s)
Fixes #23708

#### Media

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

## Testing
>
#### How Has This Been Tested?
- [X] Manual

Test Cases:
- Cypress: Button_Text_WithRecaptcha_spec.js contains it.only test,
which starts getting detected by ESLint after this change.
- Default: Randomly picked files (which has *.test.js, *.test.ts, or
*.test.tsx extensions) and changed some it tests to it.only tests. All
these cases where detected by ESLint after this change.

#### Test Plan
> Add Testsmith test cases links that relate to this PR
>
>
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## 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
- [ ] 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: Mihir <mihir.joshi@senpiper.com>
2023-06-06 17:40:44 +05:30
..
.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 chore: Linter check for dangling it.only tests (#23991) 2023-06-06 17:40:44 +05:30
docker chore: Remove login and signup related env variables from client (#22891) 2023-05-16 14:34:48 +05:30
generators chore: Add missing autocomplete definition declarations (#23726) 2023-06-02 16:22:27 +05:30
packages chore: Improve a11y of loading state of button (#23812) 2023-05-30 15:37:49 +03:00
perf
public chore: Move zippy setup after the script injection. (#23978) 2023-06-02 14:00:56 +05:30
src fix: Autocomplete trigger changes (#24025) 2023-06-06 14:22:16 +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: Linter check for dangling it.only tests (#23991) 2023-06-06 17:40:44 +05:30
.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
.prettierrc
.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 feat: Table one click binding for MongoDB and Postgres (#23629) 2023-06-01 22:56:05 +05:30
cypress.config.ts feat: Table one click binding for MongoDB and Postgres (#23629) 2023-06-01 22:56:05 +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 feat: Table one click binding for MongoDB and Postgres (#23629) 2023-06-01 22:56:05 +05:30
package.json chore: bump appsmith-design-system (#23975) 2023-06-02 15:40:01 +05:30
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: bump appsmith-design-system (#23975) 2023-06-02 15:40:01 +05:30

Appsmith Client

This project was bootstrapped with Create React App.

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