Skip to content

Commit

Permalink
test: build time test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrspartak committed Jun 20, 2024
1 parent c4ce6fc commit 28895bd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"license": "MIT",
"scripts": {
"build": "tsup",
"test": "pnpm test:src:run && pnpm test:build",
"test:build": "vitest run --dir test/built",
"test": "pnpm test:src:run && pnpm test:dist",
"test:dist": "vitest run --dir test/build",
"test:src": "vitest --coverage --dir test/src",
"test:src:run": "vitest run --coverage --dir test/src",
"check:format": "biome format --write ./src",
Expand Down
2 changes: 2 additions & 0 deletions test/build/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Why such a small amount of tests here?
These tests only confirming proper exports from the built package
8 changes: 8 additions & 0 deletions test/build/to.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { describe, expect, it } from "vitest";
import { to } from '../../dist/index.js'

describe("to", () => {
it("must be a function", () => {
expect(typeof to).toBe("function");
});
});

0 comments on commit 28895bd

Please sign in to comment.