Build script returns zero exit code due to unhandled promise rejection, non-zero exit code expected #805
Labels
better engineering
Not a bug or feature request
bug
An error in the Docusaurus core causing instability or issues with its execution
status: claimed
Issue has been claimed by a contributor who plans to work on it.
It's possible for
docusaurus build
to encounter an error during a build, but the process returns a zero exit code. This causes systems like Circle CI to consider the build a success, and if your CI process happens to deploy automatically when tests are green, it could cause your website to go down.Is this a bug report?
Yes
Have you read the Contributing Guidelines on issues?
Yes
Environment
"docusaurus": "^1.3.0"
Steps to Reproduce
versioned_docs
. To reproduce with https://github.com/facebook/react-native-website, deleteversioned_docs/version-0.5/removing-default-permissions.md
from master.docusaurus build
Expected Behavior
Docusaurus throws error due to improper sidebars file, returns non-zero exit code.
Actual Behavior
Docusaurus returns zero exit code, with the following output in the console:
Reproducible Demo
See
yarn test
in https://circleci.com/gh/facebook/react-native-website/1513The text was updated successfully, but these errors were encountered: