-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScriptify reporter. #5666
TypeScriptify reporter. #5666
Conversation
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
7fa8810
to
0409329
Compare
It seems that the failure was because of a flaky test. |
LGTM. Overall, there are some problems in the overall codebase, but they are coming from previous source. 👍 |
@@ -3,9 +3,23 @@ | |||
"plugin:@cypress/dev/react", | |||
"plugin:@cypress/dev/tests" | |||
], | |||
"parser": "@typescript-eslint/parser", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to know we don't need parser: babel-eslint
. If this works, after this gets merged we can update https://github.com/cypress-io/eslint-plugin-dev/blob/master/lib/index.js#L308 and remove babel-eslint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sainthkh you have outdone yourself here, this is great. There are a few files that got renamed and had enough changes to where they show up as deleted/added instead of renamed, but I don't think it's a big deal.
- I still need to pull this down and run it locally
Fixed a few type errors. It seems that we need a type check process in our CI. Maybe we need another PR for this. + Another failure caused by flaky test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see now that eslint's no-unused-vars
is superceded by TypeScript's, so that's why it has to be turned off, because it marks type declarations as unused vars.
* Turn on strict mode for ts files. * Tsified lib/app-state. * Tsified lib/err-model * Fixed eslint setting for tsx files. * Installed typings for classnames, chai-enzyme. * Tsified header/controls.jsx. Fixed app-state.ts for it. * Changed parser to typescript-eslint. * Tsified header/stats-store * Turn off no-unused-vars because it is checked by typescript compiler. * Removed Omit because we use typescript parser for eslint. * Tsified header/stats * Created Props interfaces. * Tsified header/header * Tsified hooks/hook-model * Tsified routes/route-model * Tsified lib/util * Tsified collapsible/collapsible * Tsified lib/flash-on-click * Tsified instrument-model and agent. * Tsified command/command-model.ts * Made hook-model use command-model types. * Tsified runnable/runnable-model and suite-model * Tsified lib/scroller. * Tsified test/test-model. * Tsified runnable-store and fixed related files. * Tsified shortcuts * Renamed events.ts * Tsified lib/events * Added typings * Tsified command/command.tsx. * Added more types to command.tsx * Tsified AnError and TestError * Tsified Hooks. * Tsified Routes. * Tsified test.tsx. * Tsified runnable-and-suite.tsx. * Tsified runnables.tsx * Added react-dom types. * Tsified main.jsx. * Fixed for build. * Fixed "Definition was not found" error. * Fixed sinon name imports. * Fixed Agents test types. * Removed IAppState. * Renamed for clarity. * Fixed model type in test-error. * Removed IStatsStore * Fixed HookModel. * Removed !. in events. * Fixed RouteModel. * Fixed runnables-store. * Fixed TestModel-related things. * Removed anys. * Fixed lint error. * Fixed AppState.pinnedSnapshotId type. * Fixed more types. * Removed NodeJS.TimeOut. * Fixed unit test failures. * fix lint script * used warn instead of 1
Part of #2690
Preparation for #678
Notes
plugins/index.js
cannot parse them.PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?