File tree Expand file tree Collapse file tree 5 files changed +899
-17
lines changed Expand file tree Collapse file tree 5 files changed +899
-17
lines changed Original file line number Diff line number Diff line change 6
6
"name" : " Lenz Weber-Tronic" ,
7
7
8
8
},
9
+ "type" : " module" ,
9
10
"license" : " MIT" ,
10
11
"exports" : {
11
- "." : " ./src/index.js"
12
+ "." : {
13
+ "module-sync" : " ./dist/index.js" ,
14
+ "module" : " ./dist/index.js" ,
15
+ "import" : " ./dist/index.js" ,
16
+ "require" : " ./dist/index.cjs"
17
+ },
18
+ "./jest" : {
19
+ "module-sync" : " ./dist/jest.js" ,
20
+ "module" : " ./dist/jest.js" ,
21
+ "import" : " ./dist/jest.js" ,
22
+ "require" : " ./dist/jest.cjs"
23
+ }
12
24
},
13
25
"dependencies" : {
14
26
"@testing-library/dom" : " ^10.4.0" ,
24
36
"prettier" : " ^3.3.3" ,
25
37
"react" : " ^18.3.1" ,
26
38
"react-dom" : " ^18.3.1" ,
39
+ "tsup" : " ^8.3.0" ,
27
40
"typescript" : " ^5.6.2"
28
41
},
29
42
"peerDependencies" : {
32
45
"react" : " ^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0" ,
33
46
"react-dom" : " ^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0"
34
47
},
48
+ "scripts" : {
49
+ "build" : " tsup"
50
+ },
35
51
"packageManager" :
" [email protected] "
36
52
}
Original file line number Diff line number Diff line change 1
1
import type { MatcherFunction } from "expect" ;
2
- import { WaitForRenderTimeoutError } from "../profile/index.js " ;
2
+ import { WaitForRenderTimeoutError } from "@testing-library/react-render-stream " ;
3
3
import type {
4
4
NextRenderOptions ,
5
5
Profiler ,
6
6
ProfiledComponent ,
7
7
ProfiledHook ,
8
- } from "../profile/index.js " ;
8
+ } from "@testing-library/react-render-stream " ;
9
9
10
10
export const toRerender : MatcherFunction < [ options ?: NextRenderOptions ] > =
11
11
async function ( actual , options ) {
Original file line number Diff line number Diff line change 16
16
],
17
17
"esModuleInterop" : true ,
18
18
"allowSyntheticDefaultImports" : true ,
19
+ "paths" : {
20
+ "@testing-library/react-render-stream" : [
21
+ " ./src/profile/index.ts"
22
+ ]
23
+ }
19
24
},
20
25
"include" : [
21
26
" src"
Original file line number Diff line number Diff line change
1
+ import { defineConfig } from "tsup" ;
2
+
3
+ export default defineConfig ( {
4
+ entry : {
5
+ index : "src/profile/index.ts" ,
6
+ jest : "src/jest/index.ts" ,
7
+ } ,
8
+ splitting : false ,
9
+ sourcemap : true ,
10
+ clean : true ,
11
+ dts : true ,
12
+ format : [ "cjs" , "esm" ] ,
13
+ target : [ "node20" ] ,
14
+ external : [ / ^ @ t e s t i n g - l i b r a r y \/ r e a c t - r e n d e r - s t r e a m / ] ,
15
+ } ) ;
You can’t perform that action at this time.
0 commit comments