Skip to content

Commit

Permalink
chore: migrate to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
samlfair committed May 13, 2022
1 parent 14b3a23 commit bbae453
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"release:alpha": "npm run build && npm run test && standard-version --release-as major --prerelease alpha && git push --follow-tags && npm run build && npm publish ./dist --tag alpha",
"release:alpha:dry": "standard-version --release-as major --prerelease alpha --dry-run",
"lint": "eslint --ext .js,.ts .",
"unit": "nyc --reporter=lcovonly --reporter=text --exclude-after-remap=false ava",
"unit": "vitest run --coverage",
"unit:watch": "vitest watch",
"test": "npm run lint && npm run unit",
"preview": "svelte-kit preview",
"package": "svelte-kit package",
Expand Down
4 changes: 2 additions & 2 deletions test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { test, expect } from "vitest";

import * as lib from "../src/lib";
// import * as lib from "../src/lib";

// TODO: Dummy test, meant to be removed when real tests come in
test("exports something", () => {
expect(lib).toBeTruthy();
expect(true).toBeTruthy();
});

0 comments on commit bbae453

Please sign in to comment.