Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent UnhandledPromiseRejectionWarning when module resolution/…
…parsing fails (#4228) * fix: prevent UnhandledPromiseRejectionWarning from module resolution/parsing fails * Account for changed Node 16 error messages Co-authored-by: Lukas Taegert-Atkinson <lukas.taegert-atkinson@tngtech.com>
- Loading branch information
1 parent
bce7624
commit 2ff8fc1
Showing
5 changed files
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { unknown } from 'external'; | ||
|
||
export function expectError() { | ||
assert.throws(() => { | ||
const obj = {}; | ||
obj[unknown].prop; | ||
} | ||
}, /^TypeError: Cannot read propert.*'prop'.*$/ ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters