diff --git a/test/roarr/integrations/log.ts b/test/roarr/integrations/log.ts index 4b7d8f5..211c8dc 100644 --- a/test/roarr/integrations/log.ts +++ b/test/roarr/integrations/log.ts @@ -1,13 +1,20 @@ /* eslint-disable node/no-process-env */ +/* eslint-disable ava/use-test */ -import test, { - afterEach, - beforeEach, +import type { + TestInterface, } from 'ava'; +import anyTest from 'ava'; import * as sinon from 'sinon'; -beforeEach(async (t) => { - process.env.ROARR_LOG = 1; +const test = anyTest as TestInterface<{ + ROARR: any, + Roarr: any, + write: sinon.SinonStubbedMember<(message: string) => void>, +}>; + +test.beforeEach(async (t) => { + process.env.ROARR_LOG = '1'; const { Roarr, diff --git a/test/roarr/integrations/noLog.ts b/test/roarr/integrations/noLog.ts index 2cc42e9..bd13534 100644 --- a/test/roarr/integrations/noLog.ts +++ b/test/roarr/integrations/noLog.ts @@ -1,13 +1,20 @@ /* eslint-disable node/no-process-env */ +/* eslint-disable ava/use-test */ -import test, { - afterEach, - beforeEach, +import type { + TestInterface, } from 'ava'; +import anyTest from 'ava'; import * as sinon from 'sinon'; -beforeEach(async (t) => { - process.env.ROARR_LOG = 0; +const test = anyTest as TestInterface<{ + ROARR: any, + Roarr: any, + write: sinon.SinonStubbedMember<(message: string) => void>, +}>; + +test.beforeEach(async (t) => { + process.env.ROARR_LOG = '0'; const { Roarr,