Skip to content

Commit 1a287ad

Browse files
authored
fix(config): set default outDir when allowJs is true and no outDir in tsconfig (#1502)
1 parent bb8d84c commit 1a287ad

21 files changed

+294
-46
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import * as foo from './foo'
2+
import bar = require('./bar')
3+
4+
test('foo', () => {
5+
expect(foo).toBe('FOO!')
6+
})
7+
8+
test('bar', () => {
9+
expect(bar).toBe('BAR!')
10+
})
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export = 'BAR!'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import * as bar from './bar'
2+
3+
test('esm', () => {
4+
expect(bar).toBe('BAR!')
5+
})
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = 'FOO!'

0 commit comments

Comments
 (0)