Skip to content

Conversation

addaleax
Copy link
Collaborator

The Node.js REPL produces errors like this when a module is not found:

Uncaught Error: Cannot find module 'a'
Require stack:
- <repl>
[ ... ]

Our test helpers interpreted the - <repl> string as a prompt, which
it is not.

Fix that by requiring the prompt not to contain a matching
angle bracket, and provide more precise error messages from our
test helpers in general to help debug future problems.

The Node.js REPL produces errors like this when a module is not found:

```js
Uncaught Error: Cannot find module 'a'
Require stack:
- <repl>
[ ... ]
```

Our test helpers interpreted the `- <repl>` string as a prompt, which
it is not.

Fix that by requiring the prompt not to contain a matching
angle bracket, and provide more precise error messages from our
test helpers in general to help debug future problems.
@addaleax addaleax merged commit c8cee80 into master Apr 20, 2021
@addaleax addaleax deleted the 589-dev branch April 20, 2021 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants