/testing-next.js-apps

End to End for Next.js apps

Primary LanguageJavaScriptMIT LicenseMIT

Testing Next.js apps

This app demonstrates how you can test a Next.js app using Cypress.

Preview

Demo

Please check out the ZEIT demo at https://testing-nextjs-apps.ghoshnirmalya.now.sh/.

Development

$ git clone https://github.com/ghoshnirmalya/testing-next.js-apps
$ cd testing-next.js-apps
$ yarn install

If you prefer npm, you can do npm install instead of yarn install.

Running the app

$ yarn dev

If you prefer npm, you can do npm run dev instead of yarn dev.

Building the app

$ yarn build

If you prefer npm, you can do npm run build instead of yarn build.

Exporting the app

$ yarn export

If you prefer npm, you can do npm run export instead of yarn export.

Running Cypress

$ yarn run cypress open

If you prefer npm, you can do npm run cypress open instead of yarn run cypress open.

Built With

  • Blue - Landing page template from Cruip.
  • Next.js - The React.js framework for building SSR web apps.
  • React - A JavaScript library for building user interfaces
  • Screely - Instantly turn your screenshot into a beautiful design mockup
  • Cypress - Fast, easy and reliable testing for anything that runs in a browser.

Deploying

  1. Create a ZEIT account at https://zeit.co/signup and download the CLI
  2. Add the API key as a secret now secrets add butter-cms-api-key "YOUR_API_KEY"
  3. Run now at the project root

License

MIT Licensed. Copyright (c) ButterCMS 2019.