Skip to content

Commit d7483f0

Browse files
authored
fix: incorrect default import from @testing-library/dom (#1162)
1 parent 4be87b3 commit d7483f0

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

src/_interop/dtl.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
1+
import * as named from '@testing-library/dom'
22

3-
import def, * as named from '@testing-library/dom'
4-
5-
export default def ?? named
3+
export default named

src/_interop/dtlEventMap.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
1+
import * as named from '@testing-library/dom/dist/event-map.js'
22

3-
import def, * as named from '@testing-library/dom/dist/event-map.js'
4-
5-
export default def ?? named
3+
export default named

src/_interop/dtlHelpers.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
1+
import * as named from '@testing-library/dom/dist/helpers.js'
22

3-
import def, * as named from '@testing-library/dom/dist/helpers.js'
4-
5-
export default def ?? named
3+
export default named

0 commit comments

Comments
 (0)