File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { Octokit } from "@octokit/core";
2
2
import { createIterator } from "./iterator.js" ;
3
3
import { createPaginate } from "./paginate.js" ;
4
4
export type { PageInfoForward , PageInfoBackward } from "./page-info.js" ;
5
+ export { VERSION } from "./version.js" ;
5
6
6
7
type paginateGraphQLInterface = {
7
8
graphql : Octokit [ "graphql" ] & {
Original file line number Diff line number Diff line change
1
+ export const VERSION = "0.0.0-development" ;
Original file line number Diff line number Diff line change 1
- import { paginateGraphQL } from "../pkg/dist-bundle/index.js" ;
1
+ import { paginateGraphQL , VERSION } from "../pkg/dist-bundle/index.js" ;
2
2
3
3
describe ( "Test package exports" , ( ) => {
4
4
it ( "should export the paginateGraphQL function" , ( ) => {
5
5
expect ( paginateGraphQL ) . toBeInstanceOf ( Function ) ;
6
6
} ) ;
7
+ it ( "should export the VERSION string" , ( ) => {
8
+ expect ( VERSION ) . toStrictEqual ( "0.0.0-development" ) ;
9
+ } ) ;
7
10
} ) ;
You can’t perform that action at this time.
0 commit comments