/bbchain-react-testing

Sample to demonstrate how to use Vite and implement unit tests with Vitest and Cypress.

Primary LanguageTypeScript

BBChain React Testing

Installation

You should have this tool on your computer to able to run the app:

Tool Version
Node.js >= 16.x

This project uses Vite.

In a terminal go to project root directory and then run the command below to install the dependencies:

npm install

Usage

To start the app on development environment, run the command below:

npm run dev

You should then have the app running on http://localhost:3000

or

If your already generate a Build for production environment, just run this:

npm run preview

You should then have the app running on http://localhost:4173

Build

To build the app for production environment, you should run the following command:

npm run build

Testing

This project has implemented tests using Vitest. It's also has a coverage report.

To run the tests on watch mode, run the command below:

npm test

If you want to see the coverage report, run this:

npm run coverage

License

Unlicensed.