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"