Skip to content

Commit

Permalink
revert to ava 5
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-mitchell committed Mar 5, 2024
1 parent 0c58a48 commit e39ccbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -70,7 +70,7 @@
"@types/node": "18.x",
"@types/stack-utils": "^2.0.3",
"@types/yargs-parser": "^21.0.3",
"ava": "^6.1.2",
"ava": "^5.3.1",
"camelcase-keys": "^9.1.3",
"common-tags": "^2.0.0-alpha.1",
"decamelize": "^6.0.0",
Expand Down
9 changes: 2 additions & 7 deletions test/_utils.ts
@@ -1,7 +1,6 @@

import process from 'node:process';
/* eslint-disable ava/no-ignored-test-files */
import {fileURLToPath} from 'node:url';
import test, {registerCompletionHandler} from 'ava';
import test from 'ava';
import {
execa,
type ExecaChildProcess,
Expand Down Expand Up @@ -61,10 +60,6 @@ type VerifyCliMacroArguments = [{
};
}, 'expected' | 'error'>];

registerCompletionHandler(() => {
process.exit(0);
});

export const _verifyCli = (baseFixture = defaultFixture) => test.macro<VerifyCliMacroArguments>(
async (t, {fixture = baseFixture, args, execaOptions, expected, error}) => {
const assertions = await t.try(async tt => {
Expand Down

0 comments on commit e39ccbf

Please sign in to comment.