From 26f19b74ad749af60c4337991e81598c8268b9c5 Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Sat, 27 Feb 2021 15:49:38 +0200 Subject: [PATCH] Fix test import paths --- jest.config.js | 6 +++--- tests/is-node.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jest.config.js b/jest.config.js index 27f644ab..104b2dc1 100644 --- a/jest.config.js +++ b/jest.config.js @@ -21,10 +21,10 @@ switch (process.env.npm_lifecycle_event) { default: process.env.TRACE_LEVEL = 'log' moduleNameMapper = { - '^\\./dist$': '/src/index.js', - '^\\./dist/types(\\.js)?$': '/src/types.js', + '^\\./dist$': '/src/index.ts', + '^\\./dist/types(\\.js)?$': '/src/types.ts', '^\\./dist/(.+)$': '/src/$1', - '^\\.\\./dist/test-events.js$': '/src/test-events.js' + '^\\.\\./dist/test-events.js$': '/src/test-events.ts' } } diff --git a/tests/is-node.ts b/tests/is-node.ts index fda3e5d2..4307d9e6 100644 --- a/tests/is-node.ts +++ b/tests/is-node.ts @@ -1,4 +1,4 @@ -import { Alias, Pair, Scalar, YAMLMap, YAMLSeq } from '../dist/types.js' +import { Alias, Pair, Scalar, YAMLMap, YAMLSeq } from '../types.js' import { Document, isAlias,