Skip to content

Commit 6d3ecb1

Browse files
committed
fix: fixed exports
1 parent f261df0 commit 6d3ecb1

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed

src/__tests__/queries.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@ test('findByText should throw errors', async () => {
2121
})
2222

2323
test('queryByText should find text', async () => {
24-
jest.setTimeout(15000)
2524
const props = await render('node', [
2625
resolve(__dirname, './execute-scripts/list-args.js'),
2726
'--version',
28-
], {debug: true})
27+
])
2928

3029
const {queryByText} = props;
3130

3231
expect(await queryByText('--version')).toBeTruthy()
33-
jest.setTimeout(5000)
3432
})
3533

3634
test('queryByText should not throw errors', async () => {

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
export * from './helpers'
2-
export * from './wait-for'
32
export * from './events'
43
export * from './pure'
4+
export * from './matches'
5+
export * from './mutation-observer'
6+
export * from './wait-for'

tests/setup-env.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ afterEach(() => {
4444
afterAll(() => {
4545
jest.restoreAllMocks()
4646
})
47+
48+
jest.setTimeout(25000)

types/index.d.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
// TypeScript Version: 3.8
22

3-
import {getQueriesForElement} from './get-queries-for-element'
43
import * as queries from './queries'
54
import * as queryHelpers from './query-helpers'
65

7-
declare const within: typeof getQueriesForElement
8-
export {queries, queryHelpers, within}
6+
export {queries, queryHelpers}
97

108
export * from './queries'
119
export * from './query-helpers'
12-
export * from './screen'
1310
export * from './wait-for'
14-
export * from './wait-for-element-to-be-removed'
1511
export * from './matches'
16-
export * from './get-node-text'
17-
export * from './events'
18-
export * from './get-queries-for-element'
19-
export * from './pretty-dom'
20-
export * from './role-helpers'
2112
export * from './config'
2213
export * from './suggestions'

0 commit comments

Comments
 (0)