File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.1" ,
4
4
"description" : " Frontend testing utilities for Hypothesis projects" ,
5
5
"type" : " module" ,
6
- "main" : " lib/index.js" ,
6
+ "main" : " ./lib/index.js" ,
7
+ "types" : " ./lib/index.d.ts" ,
7
8
"repository" : " https://github.com/hypothesis/frontend-testing" ,
8
9
"author" : " Hypothesis Developers <eng@list.hypothes.is>" ,
9
10
"license" : " BSD-2-Clause" ,
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ export type Scenario = {
10
10
/**
11
11
* A function that returns the rendered output to test, or an Enzyme wrapper
12
12
* created using Enzyme's `mount` function.
13
+ *
14
+ * Returning a VNode is preferred. An Enzyme wrapper for a component with a
15
+ * top-level Fragment will result in the test being run for the first DOM
16
+ * child node only.
17
+ * Use the Enzyme wrapper only if really needed, and consider wrapping your
18
+ * component with a `<div />` in that case.
13
19
*/
14
20
content : ( ) => VNode | ReactWrapper ;
15
21
} ;
Original file line number Diff line number Diff line change 1
1
export type { Scenario } from './accessibility.js' ;
2
2
export { checkAccessibility } from './accessibility.js' ;
3
3
export { mockImportedComponents } from './mock-imported-components.js' ;
4
+ export type { TestTimeout , TimeoutSpec } from './wait.js' ;
4
5
export { delay , waitFor , waitForElement } from './wait.js' ;
Original file line number Diff line number Diff line change 13
13
14
14
/* Emit */
15
15
"outDir" : " ./lib" ,
16
+ "declaration" : true ,
16
17
17
18
/* Interop Constraints */
18
19
"esModuleInterop" : true ,
You can’t perform that action at this time.
0 commit comments