Checkout sample

Branches Coverage Badge Functions Coverage Badge Lines Coverage Badge Statements Coverage Badge

Features

  • Payment form
  • Offers selection
  • Subscription confirmation
  • Mobile Friendly
  • E2E tests

Running the project

First, you need to install the dependencies:

npm install

Right after, you can run the project locally with:

npm run dev

Open http://localhost:3000 with your browser to see the application.

Testing

To check the unit tests and update the coverage badges you can run the following command:

npm run test:coverage

Playwright is the default E2E testing library used, to check the tests you can run the following command:

npm run test:e2e

Demo

To check the demo please visit https://checkout-sample.vercel.app/