Skip to content

Commit fedfaeb

Browse files
authored
fix: Export missing static methods (#2506)
1 parent 7d32583 commit fedfaeb

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/index.spec.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import * as cheerio from './index';
2+
import * as statics from './static';
3+
4+
describe('index', () => {
5+
it('should export all static methods', () => {
6+
for (const key of Object.keys(statics) as (keyof typeof statics)[]) {
7+
expect(cheerio[key]).toBe(statics[key]);
8+
}
9+
});
10+
});

src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ import { filters, pseudos, aliases } from 'cheerio-select';
8383
*/
8484
export const select = { filters, pseudos, aliases };
8585

86+
export * from './static';
87+
8688
import * as staticMethods from './static';
8789

8890
/**

0 commit comments

Comments
 (0)