Skip to content

Commit

Permalink
fix(xsnap): Allow for an absent package.json ava.require
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Aug 4, 2021
1 parent 123227e commit 2d30a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xsnap/src/avaXS.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ async function avaConfig(args, options, { glob, readFile }) {
if (unsupported.length > 0) {
console.warn(X`ava-xs does not support ava options: ${q(unsupported)}`);
}
const { files: filePatterns, require } = pkgMeta.ava;
const { files: filePatterns, require = [] } = pkgMeta.ava;
let { exclude } = pkgMeta['ava-xs'] || {};
if (typeof exclude === 'string') {
exclude = [exclude];
Expand Down

0 comments on commit 2d30a11

Please sign in to comment.