From d7483f049a1ec2ebf1ca1e2c1f4367849fca5997 Mon Sep 17 00:00:00 2001 From: Bryan Thomas <49354825+bryanjtc@users.noreply.github.com> Date: Fri, 15 Sep 2023 13:03:12 -0500 Subject: [PATCH] fix: incorrect default import from @testing-library/dom (#1162) --- src/_interop/dtl.ts | 6 ++---- src/_interop/dtlEventMap.ts | 6 ++---- src/_interop/dtlHelpers.ts | 6 ++---- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/_interop/dtl.ts b/src/_interop/dtl.ts index 4011553d..54ea3cee 100644 --- a/src/_interop/dtl.ts +++ b/src/_interop/dtl.ts @@ -1,5 +1,3 @@ -/* eslint-disable @typescript-eslint/no-unnecessary-condition */ +import * as named from '@testing-library/dom' -import def, * as named from '@testing-library/dom' - -export default def ?? named +export default named diff --git a/src/_interop/dtlEventMap.ts b/src/_interop/dtlEventMap.ts index 6474d356..51f078c2 100644 --- a/src/_interop/dtlEventMap.ts +++ b/src/_interop/dtlEventMap.ts @@ -1,5 +1,3 @@ -/* eslint-disable @typescript-eslint/no-unnecessary-condition */ +import * as named from '@testing-library/dom/dist/event-map.js' -import def, * as named from '@testing-library/dom/dist/event-map.js' - -export default def ?? named +export default named diff --git a/src/_interop/dtlHelpers.ts b/src/_interop/dtlHelpers.ts index dcc60101..fe76479a 100644 --- a/src/_interop/dtlHelpers.ts +++ b/src/_interop/dtlHelpers.ts @@ -1,5 +1,3 @@ -/* eslint-disable @typescript-eslint/no-unnecessary-condition */ +import * as named from '@testing-library/dom/dist/helpers.js' -import def, * as named from '@testing-library/dom/dist/helpers.js' - -export default def ?? named +export default named