Skip to content

Possibility to disable postBuild and run tests on preBuild exclusively #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TejasQ opened this issue Jan 7, 2021 · 2 comments · Fixed by #105
Closed

Possibility to disable postBuild and run tests on preBuild exclusively #96

TejasQ opened this issue Jan 7, 2021 · 2 comments · Fixed by #105

Comments

@TejasQ
Copy link

TejasQ commented Jan 7, 2021

Is your feature request related to a problem? Please describe.
I'm running a NextJS site on Netlify using next-on-netlify. This builds my website in a weird way, with the final published assets in a configuration that I nor cypress can understand. This makes my tests fail. However, if I spin up NextJS' dev server and test with Cypress against that, all works swimmingly.

At this point, my project would build perfectly if I could somehow stop the postBuild from running and testing exclusively with the preBuild.

Describe the solution you'd like
It'd be great if I could pass an option to skipPostBuild: true or similar, and only run my tests preBuild.

Describe alternatives you've considered
I've opened an issue on next-on-netlify to also help build proper static output published assets.

@bahmutov
Copy link
Contributor

bahmutov commented Feb 4, 2021

Should be released shortly

[plugins.inputs]
  skip = true

@bahmutov
Copy link
Contributor

bahmutov commented Feb 4, 2021

🎉 This issue has been resolved in version 1.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants