Update ava to 4.3.3
The [release notes](https://github.com/avajs/ava/releases/tag/v4.3.3) mention compatibility with Node 18.8.
This commit is contained in:
parent
21530f507f
commit
bea5e4b220
160 changed files with 2647 additions and 2263 deletions
4
node_modules/ava/lib/snapshot-manager.js
generated
vendored
4
node_modules/ava/lib/snapshot-manager.js
generated
vendored
|
|
@ -391,7 +391,9 @@ class Manager {
|
|||
|
||||
const resolveSourceFile = mem(file => {
|
||||
const sourceMap = findSourceMap(file);
|
||||
if (sourceMap === undefined) {
|
||||
// Prior to Node.js 18.8.0, the value when a source map could not be found was `undefined`.
|
||||
// This changed to `null` in <https://github.com/nodejs/node/pull/43875>. Check both.
|
||||
if (sourceMap === undefined || sourceMap === null) {
|
||||
return file;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue