Skip to content

System.exit(0) makes the main process exit with exit code 0 #99

@gfhuertac

Description

@gfhuertac

This is related to #92
We are running an action hero app and testing it with Mocha.
On one of the tests we call System.exit(0), following what is specified on #92. But this causes the main process exits with exit code 0, so the test tool to think that the build was successful even though there were failures on the testing process.
Is there any way to capture the System.exit from the parent process?
I already tried with process.on('exit', .... but it was never called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions