Skip to content

Commit

Permalink
chore: Use only TS + Vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
bnussman committed Oct 31, 2023
1 parent 8aee404 commit f580d97
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
Binary file modified bun.lockb
Binary file not shown.
9 changes: 0 additions & 9 deletions jest.config.js

This file was deleted.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dist"
],
"scripts": {
"test": "jest",
"test": "vitest run",
"build": "tsc"
},
"repository": {
Expand All @@ -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"
}
}
4 changes: 3 additions & 1 deletion src/__tests__/checkCssPropertyRecursively.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { checkCssPropertyRecursively } from '../utils/checkCssPropertyRecursively';

import { describe, it, beforeEach, vi, expect } from 'vitest';

import type { Rule } from 'eslint';

describe('checkCssPropertyRecursively', () => {
let context: Rule.RuleContext;

beforeEach(() => {
context = {
report: jest.fn(),
report: vi.fn(),
} as unknown as Rule.RuleContext;
});

Expand Down

0 comments on commit f580d97

Please sign in to comment.