diff --git a/bun.lockb b/bun.lockb index 13f94ee..373e7df 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/jest.config.js b/jest.config.js deleted file mode 100644 index 1670439..0000000 --- a/jest.config.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = { - testEnvironment: 'node', - transform: { - '^.+\\.tsx?$': 'ts-jest', - }, - testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$', - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], - collectCoverageFrom: ['src/**/*.ts'], -}; diff --git a/package.json b/package.json index ee597e3..cfb191a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "dist" ], "scripts": { - "test": "jest", + "test": "vitest run", "build": "tsc" }, "repository": { @@ -30,11 +30,9 @@ }, "devDependencies": { "@types/eslint": "^8.44.6", - "@types/jest": "^29.5.6", "@typescript-eslint/eslint-plugin": "^6.9.1", "@typescript-eslint/parser": "^6.9.1", - "jest": "^29.7.0", - "ts-jest": "^29.1.1", - "typescript": "^5.2.2" + "typescript": "^5.2.2", + "vitest": "^0.34.6" } } diff --git a/src/__tests__/checkCssPropertyRecursively.test.ts b/src/__tests__/checkCssPropertyRecursively.test.ts index 88c561b..6613248 100644 --- a/src/__tests__/checkCssPropertyRecursively.test.ts +++ b/src/__tests__/checkCssPropertyRecursively.test.ts @@ -1,5 +1,7 @@ import { checkCssPropertyRecursively } from '../utils/checkCssPropertyRecursively'; +import { describe, it, beforeEach, vi, expect } from 'vitest'; + import type { Rule } from 'eslint'; describe('checkCssPropertyRecursively', () => { @@ -7,7 +9,7 @@ describe('checkCssPropertyRecursively', () => { beforeEach(() => { context = { - report: jest.fn(), + report: vi.fn(), } as unknown as Rule.RuleContext; });