Skip to content

Commit

Permalink
Update to invoke execa as an ESM import.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed Feb 2, 2022
1 parent f771c6b commit 4baec11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const path = require('path');
const os = require('os');
const process = require('process');
const test = require('ava');
const execa = require('execa');

// eslint-disable-next-line node/no-unsupported-features/es-syntax
const execa = (...args) => import('execa').then(module => module.execa(...args));

const errorPattern = /(\.md|\.markdown|\.mdf|stdin):\d+(:\d+)? MD\d{3}/gm;

Expand Down

0 comments on commit 4baec11

Please sign in to comment.