Skip to content

Commit

Permalink
chore: Use vitest (#490)
Browse files Browse the repository at this point in the history
Replace jest with [Vitest](https://vitest.dev/).
  • Loading branch information
ueokande authored May 4, 2024
1 parent 361a397 commit 5171d68
Show file tree
Hide file tree
Showing 5 changed files with 675 additions and 2,085 deletions.
10 changes: 0 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,3 @@ updates:
actions:
patterns:
- "@actions/*"
typescript:
patterns:
- "typescript"
- "@typescript-*"
jest:
patterns:
- "jest"
- "jest-*"
- "ts-jest"
- "@types/jest"
1 change: 1 addition & 0 deletions __test__/edge_api.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as fs from "node:fs";
import * as path from "node:path";
import { beforeEach, describe, expect, it } from "vitest";
import { EdgeUpdates } from "../src/edge_api";

describe("EdgeUpdates", () => {
Expand Down
11 changes: 0 additions & 11 deletions jest.config.js

This file was deleted.

10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,15 @@
},
"devDependencies": {
"@biomejs/biome": "^1.7.2",
"@types/jest": "^29.5.5",
"@types/node": "^18.13.0",
"@vercel/ncc": "^0.38.0",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
"typescript": "^5.2.2",
"vitest": "^1.6.0"
},
"scripts": {
"build": "ncc build src/index.ts",
"package": "cp action.yml README.md dist/",
"test": "jest",
"test:watch": "jest --watch",
"test": "vitest",
"lint": "biome ci .",
"lint:fix": "biome check --apply ."
},
Expand Down
Loading

0 comments on commit 5171d68

Please sign in to comment.