Skip to content

Commit

Permalink
chore: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev authored Jul 21, 2024
1 parent 97855ed commit 8ccce45
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -901,3 +901,19 @@ test('generate sourcemap with --treeshake', async () => {
}),
)
})

test('should not throw when having directories as entry', async () => {
const sourceCode = 'export const h = "h"'

expect(
run(
getTestName(),
{
'src/input.ts': sourceCode,
},
{
entry: ['src'],
},
),
).resolves
})

0 comments on commit 8ccce45

Please sign in to comment.