Skip to content

Commit

Permalink
Remove cypress (#113)
Browse files Browse the repository at this point in the history
* removed cypress, updated README.md

* updated package.json
  • Loading branch information
TomasBankauskas authored Apr 11, 2024
1 parent 22236aa commit dc4028c
Show file tree
Hide file tree
Showing 7 changed files with 145 additions and 2,027 deletions.
27 changes: 0 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ This project is a very minimal starter that includes 2 sample components, a glob
- [Testing](#testing)
- [Included Default Testing](#included-default-testing)
- [Removing Renovate](#removing-renovate)
- [Removing Cypress](#removing-cypress)

## Getting Started

Expand Down Expand Up @@ -62,29 +61,3 @@ If your team is not interested in this tooling, you can remove them with ease!
### Removing Renovate

In order to keep our project up-to-date with dependencies we use a tool called [Renovate](https://github.com/marketplace/renovate). If you’re not interested in this tooling, delete the `renovate.json` file and commit that onto your main branch.

### Removing Cypress

For our testing, we use [Cypress](https://www.cypress.io/) for end-to-end testing. This makes sure that we can validate that our templates are rendering and displaying as we’d expect. By default, we have Cypress not generate deploy links if our tests don’t pass. If you’d like to keep Cypress and still generate the deploy links, go into your `netlify.toml` and delete the plugin configuration lines:

```diff
[[plugins]]
package = "netlify-plugin-cypress"
- [plugins.inputs.postBuild]
- enable = true
-
- [plugins.inputs]
- enable = false
```

If you’d like to remove the `netlify-plugin-cypress` build plugin entirely, you’d need to delete the entire block above instead. And then make sure sure to remove the package from the dependencies using:

```bash
npm uninstall -D netlify-plugin-cypress
```

And lastly if you’d like to remove Cypress entirely, delete the entire `cypress` folder and the `cypress.config.ts` file. Then remove the dependency using:

```bash
npm uninstall -S cypress
```
8 changes: 0 additions & 8 deletions cypress.config.js

This file was deleted.

17 changes: 0 additions & 17 deletions cypress/e2e/basic.cy.js

This file was deleted.

2 changes: 0 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
command = "npm run build"
publish = ".next"

[[plugins]]
package = "netlify-plugin-cypress"
7 changes: 7 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true
};

module.exports = nextConfig;
Loading

0 comments on commit dc4028c

Please sign in to comment.