Skip to content

Commit

Permalink
test: add a test to ensure export
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Mar 13, 2024
1 parent ccebf5c commit ca9e856
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/smoke.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { paginateGraphQL } from "../pkg/dist-bundle/index.js";
import { paginateGraphQL, VERSION } from "../pkg/dist-bundle/index.js";

describe("Test package exports", () => {
it("should export the paginateGraphQL function", () => {
expect(paginateGraphQL).toBeInstanceOf(Function);
});
it("should export the VERSION string", () => {
expect(VERSION).toStrictEqual("0.0.0-development");
});
});

0 comments on commit ca9e856

Please sign in to comment.