From b12f3841b895da1b205296acba5765c13e619169 Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Thu, 7 Sep 2023 15:00:38 -0500 Subject: [PATCH] chore: lint --- __tests__/single-threaded/openapi/convert.test.ts | 2 +- __tests__/single-threaded/openapi/index.test.ts | 2 +- __tests__/single-threaded/openapi/reduce.test.ts | 4 +++- __tests__/single-threaded/openapi/validate.test.ts | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/__tests__/single-threaded/openapi/convert.test.ts b/__tests__/single-threaded/openapi/convert.test.ts index 3c3dfe3f4..a4c01bc9d 100644 --- a/__tests__/single-threaded/openapi/convert.test.ts +++ b/__tests__/single-threaded/openapi/convert.test.ts @@ -1,4 +1,4 @@ -import fs from 'fs'; +import fs from 'node:fs'; import { describe, it, expect, vi, afterEach, beforeEach } from 'vitest'; diff --git a/__tests__/single-threaded/openapi/index.test.ts b/__tests__/single-threaded/openapi/index.test.ts index ecf4888e5..bb2d7f81f 100644 --- a/__tests__/single-threaded/openapi/index.test.ts +++ b/__tests__/single-threaded/openapi/index.test.ts @@ -1,5 +1,5 @@ /* eslint-disable no-console */ -import fs from 'fs'; +import fs from 'node:fs'; import chalk from 'chalk'; import config from 'config'; diff --git a/__tests__/single-threaded/openapi/reduce.test.ts b/__tests__/single-threaded/openapi/reduce.test.ts index 30a849679..57631478a 100644 --- a/__tests__/single-threaded/openapi/reduce.test.ts +++ b/__tests__/single-threaded/openapi/reduce.test.ts @@ -1,5 +1,5 @@ /* eslint-disable no-console */ -import fs from 'fs'; +import fs from 'node:fs'; import chalk from 'chalk'; import prompts from 'prompts'; @@ -16,6 +16,7 @@ const getCommandOutput = () => consoleInfoSpy.mock.calls.join('\n\n'); describe('rdme openapi:reduce (single-threaded)', () => { let testWorkingDir: string; + beforeEach(() => { consoleInfoSpy = vi.spyOn(console, 'info').mockImplementation(() => {}); testWorkingDir = process.cwd(); @@ -79,6 +80,7 @@ describe('rdme openapi:reduce (single-threaded)', () => { expect(Object.keys(reducedSpec.paths)).toStrictEqual(['/user']); }); }); + describe('by path', () => { it('should reduce with no prompts via opts', async () => { const spec = 'petstore.json'; diff --git a/__tests__/single-threaded/openapi/validate.test.ts b/__tests__/single-threaded/openapi/validate.test.ts index b322da0f0..a474fea8b 100644 --- a/__tests__/single-threaded/openapi/validate.test.ts +++ b/__tests__/single-threaded/openapi/validate.test.ts @@ -1,5 +1,5 @@ /* eslint-disable no-console */ -import fs from 'fs'; +import fs from 'node:fs'; import chalk from 'chalk'; import prompts from 'prompts';