From 62e07d662d67fe6f325a44ab2eb8a76fb8c962bd Mon Sep 17 00:00:00 2001 From: Christian Bromann Date: Mon, 18 Nov 2024 11:02:47 -0800 Subject: [PATCH] fix(testing): fix eslint --- __mocks__/commander.ts | 2 +- eslint.config.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__mocks__/commander.ts b/__mocks__/commander.ts index 60cbec9e..386ff5ff 100644 --- a/__mocks__/commander.ts +++ b/__mocks__/commander.ts @@ -1,7 +1,7 @@ import { vi } from 'vitest' import * as path from 'node:path' -const command: any = {} +const command: Record = {} command.name = vi.fn().mockReturnValue(command) command.version = vi.fn().mockReturnValue(command) command.usage = vi.fn().mockReturnValue(command) diff --git a/eslint.config.js b/eslint.config.js index cf77c3dd..5435397b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -2,7 +2,7 @@ import wdioEslint from '@wdio/eslint' export default wdioEslint.config([ { - ignores: ['dist'] + ignores: ['build'] }, /** * custom test configuration diff --git a/package.json b/package.json index 0e8282a5..558ab2a3 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "release:minor": "npm run release -- minor", "release:major": "npm run release -- major", "test": "run-s build test:*", - "test:eslint": "eslint -c ./eslint.config.js ./src/**/*.ts ./tests/**/*.ts", + "test:lint": "eslint .", "test:unit": "vitest run", "watch": "npm run compile -- --watch", "watch:test": "vitest watch"