Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
run: pnpm install && npx playwright install

- name: Run Test
run: pnpm run build
run: pnpm run build && pnpm run test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"lint": "biome check .",
"lint:write": "biome check . --write",
"prepare": "simple-git-hooks && npm run build",
"test": "playwright test",
"test": "node test/index.js",
"bump": "npx bumpp"
},
"simple-git-hooks": {
Expand Down
17 changes: 17 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import assert from 'node:assert';
import test from 'node:test';
import {
checkCancel,
create,
multiselect,
select,
text,
} from '../dist/index.js';

test('should export public APIs', () => {
assert.deepStrictEqual(typeof checkCancel, 'function');
assert.deepStrictEqual(typeof create, 'function');
assert.deepStrictEqual(typeof multiselect, 'function');
assert.deepStrictEqual(typeof select, 'function');
assert.deepStrictEqual(typeof text, 'function');
});