Skip to content

Commit

Permalink
more lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Apr 15, 2024
1 parent 22b1658 commit 94063a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -26,8 +28,6 @@ jobs:
bun-version: latest
- run: pnpm test:bun

- run: pnpm test:pkg

- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
2 changes: 1 addition & 1 deletion test/node/node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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})
})
})
8 changes: 3 additions & 5 deletions test/pkg/pkg.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 94063a6

Please sign in to comment.