@ergilly/react-test-app
v0.1.0
Published
Basic React test app used to verify and compare UI testing frameworks
Maintainers
Readme
react-test-app
react-test-app is a basic React application intended for validating UI testing frameworks against a known, stable target.
Use it to quickly check framework setup, selectors, routing, auth flows, and regression behavior in tools such as Playwright, Cypress, Selenium, or WebdriverIO.
Why this package exists
- Provides a predictable UI surface for end-to-end and component-style UI test automation.
- Includes common app patterns (navigation, protected routes, forms, profile page).
- Ships with a CLI so test suites can start the app consistently on a chosen port.
Install
npm install react-test-appOr from local source:
npm install ../ReactAppRun the app for tests
Use npx:
npx react-test-app --port 4173Or if installed globally/in a project:
react-test-app --port 4173CLI options
--port <number>or-p <number>: Port to run the app on.PORTenvironment variable is used when--portis not provided.
Local development
npm run devBuild
npm run buildBuild output includes static assets and CLI launcher at dist/react-test-app.js.
Package scripts
npm run dev: Start local Vite dev server.npm run build: Build app and CLI launcher.npm run test: Run unit tests.npm run lint: Run linting.npm start -- --port 4173: Build and run the packaged launcher.
Publishing checklist
npm run build
npm pack
npm publishIf publishing under a scoped package for the first time, use:
npm publish --access public