Skip to content

Commit

Permalink
test: fix default tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Aug 21, 2023
1 parent dc655a5 commit e626155
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions playground/slices/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const components = {};
2 changes: 1 addition & 1 deletion test/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { expectTypeOf, it } from "vitest";
import * as lib from "../src";

it("returns void", () => {
expectTypeOf(lib.hello).returns.toBeVoid();
expectTypeOf(lib.createUpgradeProcess).returns.not.toBeVoid();
});
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,10 @@ export default defineConfig({
reporter: ["lcovonly", "text"],
},
setupFiles: ["./test/__setup__.ts"],
deps: {
inline:
// TODO: Replace with true once https://github.com/vitest-dev/vitest/issues/2806 is fixed.
[/^(?!.*vitest).*$/],
},
},
});

0 comments on commit e626155

Please sign in to comment.