From 94063a64f4062e035e08a539f228de475399445e Mon Sep 17 00:00:00 2001 From: Misha Kaletsky <15040698+mmkal@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:46:40 +0000 Subject: [PATCH] more lint fixes --- .github/workflows/ci.yml | 4 ++-- test/node/node.test.ts | 2 +- test/pkg/pkg.test.ts | 8 +++----- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 194721f..92cce81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,8 @@ jobs: - run: pnpm test-server & - run: sleep 2 + - run: pnpm test:pkg + - uses: denoland/setup-deno@v1 with: deno-version: v1.x @@ -26,8 +28,6 @@ jobs: bun-version: latest - run: pnpm test:bun - - run: pnpm test:pkg - - uses: actions/upload-artifact@v3 if: always() with: diff --git a/test/node/node.test.ts b/test/node/node.test.ts index fe71300..ec2468a 100644 --- a/test/node/node.test.ts +++ b/test/node/node.test.ts @@ -14,7 +14,7 @@ const cases = [ ] cases.forEach(([name, fetch]) => { - test.describe(`${name} impl`, async () => { + test.describe(`${name} impl`, () => { createTestSuite({test, expect, fetch: fetch, fetchomatic, retry}) }) }) diff --git a/test/pkg/pkg.test.ts b/test/pkg/pkg.test.ts index 6fbd2a3..6720f49 100644 --- a/test/pkg/pkg.test.ts +++ b/test/pkg/pkg.test.ts @@ -5,23 +5,21 @@ import {createRequire} from 'module' import {createTestSuite} from '../suite.js' const require = createRequire(import.meta.url) -test.describe(`import pkg`, async () => { +test.describe(`import pkg`, () => { createTestSuite({test, expect, fetch: fetch, fetchomatic, retry}) }) -test.describe(`require pkg`, async () => { - // eslint-disable-next-line @typescript-eslint/consistent-type-imports +test.describe(`require pkg`, () => { const cjs = require('fetchomatic') as typeof import('fetchomatic') createTestSuite({test, expect, fetch: fetch, fetchomatic: cjs.fetchomatic, retry: cjs.retry}) }) -// eslint-disable-next-line @typescript-eslint/consistent-type-imports let asyncModule: typeof import('fetchomatic') test.beforeAll(async () => { asyncModule = await import('fetchomatic') }) -test.describe(`async import pkg`, async () => { +test.describe(`async import pkg`, () => { createTestSuite({ test, expect,