Skip to content

Commit

Permalink
Fix test import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Feb 27, 2021
1 parent 4ce72b3 commit 26f19b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions jest.config.js
Expand Up @@ -21,10 +21,10 @@ switch (process.env.npm_lifecycle_event) {
default:
process.env.TRACE_LEVEL = 'log'
moduleNameMapper = {
'^\\./dist$': '<rootDir>/src/index.js',
'^\\./dist/types(\\.js)?$': '<rootDir>/src/types.js',
'^\\./dist$': '<rootDir>/src/index.ts',
'^\\./dist/types(\\.js)?$': '<rootDir>/src/types.ts',
'^\\./dist/(.+)$': '<rootDir>/src/$1',
'^\\.\\./dist/test-events.js$': '<rootDir>/src/test-events.js'
'^\\.\\./dist/test-events.js$': '<rootDir>/src/test-events.ts'
}
}

Expand Down
2 changes: 1 addition & 1 deletion 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,
Expand Down

0 comments on commit 26f19b7

Please sign in to comment.