Skip to content

Commit

Permalink
Use vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Jul 21, 2024
1 parent 941bdf0 commit 6f21d0f
Show file tree
Hide file tree
Showing 4 changed files with 4,053 additions and 2,749 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"devDependencies": {
"@changesets/cli": "^2.27.7",
"@types/node": "^20.14.11",
"prettier": "^3.3.3"
"prettier": "^3.3.3",
"vitest": "^2.0.3"
},
"packageManager": "pnpm@9.1.4"
}
5 changes: 4 additions & 1 deletion packages/feed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"description": "",
"type": "module",
"main": "dist/index.js",
"files": [
"dist"
],
"exports": {
".": "./dist/index.js"
},
Expand All @@ -12,7 +15,7 @@
"dev": "tsup src/index.ts --format esm --dts --watch",
"prepublishOnly": "node --run build",
"check": "publint && attw $(pnpm pack) --ignore-rules=cjs-resolves-to-esm",
"test": "node --test"
"test": "vitest"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
Expand Down
7 changes: 7 additions & 0 deletions packages/feed/test/hello.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { describe, it, expect } from "vitest";

describe("hello", () => {
it("should say hello", () => {
expect("hello").toBe("hello");
});
})
Loading

0 comments on commit 6f21d0f

Please sign in to comment.