Skip to content

amayer42/bug-repro-no-cypress-eslint

Repository files navigation

BugReproNoCypressEslint

This is a Nx Angular workspace created to reproduce an issue with the @nx/angular:cypress-component-configuration generator. Since this generator configures cypress component tests "inline" within a project, it should also configure linting appropriately to apply the plugin:cypress/recommended ruleset to cypress test files in the project.

In the case of this reproduction, I think that apps/app/.eslintrc.json should have been updated by the generator with something like the following or another equivalent.

{
  "files": ["*.cy.ts"],
  "extends": ["plugin:cypress/recommended"]
}

If this is added, the cy.wait that I've added to app/src/app/app.component.cy.ts will be properly flagged as incorrect according to the recommended cypress ruleset.

I'm not certain that the above is 100% inclusive of everything that should technically be overseen by the cypress/recommended ruleset (i.e. app/cypress/**/*.ts) but wanted to at least create a minimum viable reproduction.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages