This project was bootstrapped with Create React App. Too see more details about bootstrapping, open documentation/bootstrapping.md
[2025-09] This project was migrated from Create React App to Vite. To see more information about migration, open documentation/vite.md
- See
"engines"in package.json for minimum version requirements (for examplenodeandnpm) Prettier, see documentation/prettier.mdEditorConfig, see documentation/editor-config.md (optional)
Preferred code editor is Visual Studio Code. Settings config file is also included in .vscode directory.
Contribute using GitHub flow, once new Pull request is created, GitHub Workflows are started and jobs consisting of building and testing are executed.
First prepare project locally:
git clone <yourGitForkUrl> pnc-web-ui-react
cd ./pnc-web-ui-react/
npm installThen choose one of the following options:
1) Development
npm start # runs the app in the development mode on: http://localhost:30002) Build
npm run build # builds the app for production to the dist folder3) Preview
npm run preview # runs the production build from dist folder (only for testing purposes)not available yet
Unit tests are integrated for all components, you can use the following commands to run the unit tests for modified components:
npm run test # run tests for those components that was modified.If you want to run all tests, press a.
Snapshot Test was integrated in some components. Update for snapshots is required if the UI layout is changed.
To update the snapshops of a component:
1a) Run unit test
npm run test # run tests for those components that was modified.Make sure you have snapshot failed only from the console output.
2) Trigger update snapshots
Press u to update failing snapshots.
1b) Run vitest update
Alternatively, trigger snapshots update directly.
npx vitest --update