diff --git a/test/tsconfig.json b/test/tsconfig.json index 79711a8..7052e7d 100644 --- a/test/tsconfig.json +++ b/test/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "../tsconfig.json", + "compilerOptions": { + "moduleResolution": "node", + }, "include": [ "**/*" ] diff --git a/test/type-tests/public-types-function-listener-test.ts b/test/type-tests/public-types-function-listener-test.ts index f6e7500..57e29e1 100644 --- a/test/type-tests/public-types-function-listener-test.ts +++ b/test/type-tests/public-types-function-listener-test.ts @@ -1,6 +1,6 @@ import { expectTypeOf } from 'expect-type'; -import { Binding, Listener } from '../../src'; -import { expectType, TypeOf } from 'ts-expect'; +import type { Binding, Listener } from '../../src'; +import { expectType, type TypeOf } from 'ts-expect'; // This is how you can 'teach' TS about your custom event declare global { diff --git a/test/type-tests/public-types-object-listener-test.ts b/test/type-tests/public-types-object-listener-test.ts index 0599d44..e9113fe 100644 --- a/test/type-tests/public-types-object-listener-test.ts +++ b/test/type-tests/public-types-object-listener-test.ts @@ -1,6 +1,6 @@ import { expectTypeOf } from 'expect-type'; import type { Binding, Listener } from '../../src'; -import { expectType, TypeOf } from 'ts-expect'; +import { expectType, type TypeOf } from 'ts-expect'; // extracting event type {