Repository navigation
chore(react): use Ionic lint and Prettier configs and replace Cypress with Playwright - #1915
Draft
brandyscarney wants to merge 1 commit into
Draft
brandyscarney wants to merge 1 commit into
brandyscarney wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What This Does
Brings the
react-vitestarters in line with the Ionic tutorial app (tutorial-photo-gallery-react), so an app created withionic starthas the same lint, formatting, and test setup the tutorials teach against.New Behavior
Apps generated from the React starters now:
@ionic/eslint-config, and format with Prettier and@ionic/prettier-config.npm run lintchecks both andnpm run lint:fixfixes both.@testing-library/jest-dom6.lint,lint:fix,test,test:unit,test:unit:watch, andtest:e2e. These replacetest.unitandtest.e2e.Changes
base:eslint.config.jsnow uses@ionic/eslint-configwithreact-hooksandreact-refresh..prettierignore(skipsandroid/andios/)..editorconfig.playwright.config.ts..gitignore.@ionic/eslint-config,@ionic/prettier-config,@playwright/test, andprettier.eslint-plugin-react-hooks7,eslint-plugin-react-refresh0.5, Vitest 5, jsdom 30, jest-dom 6, and globals 17.cypress,eslint-plugin-react,typescript-eslint, and@testing-library/user-event.vite.config.tsonly collects unit tests fromsrc/.setupTests.ts:@testing-library/jest-dom/vitest.matchMediastub.cypress/e2e/test.cy.tsis now an equivalente2e/app.spec.ts.ExploreContainer.ExploreContainernow usesid="container", matching the other React templates and the Angular and Vue tabs starters.ionic.starter.jsontest script now runs lint, build, unit tests, then Playwright e2e, withoutconcurrently.Notes
App.tsxkeep their original order, so the CSS cascade is unchanged.npm run starters:testfor all four templates.