Giter Site home page Giter Site logo

ghoshnirmalya / testing-next.js-apps Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 4.0 650 KB

End to End for Next.js apps

Home Page: https://buttercms.com/blog/how-to-test-nextjs-apps

License: MIT License

JavaScript 100.00%
react nextjs buttercms cypress

testing-next.js-apps's Introduction

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.

testing-next.js-apps's People

Contributors

dependabot[bot] avatar ghoshnirmalya avatar ijjk avatar jakelumetta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.