Skip to content

Commit

Permalink
test: multiple entry with the same base name
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Nov 17, 2021
1 parent d079b9b commit 795d065
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/index.test.ts
Expand Up @@ -1030,3 +1030,22 @@ test('esbuild metafile', async () => {
]
`)
})

test('multiple entry with the same base name', async () => {
const { outFiles } = await run(
getTestName(),
{
'src/input.ts': `export const foo = 1`,
'src/bar/input.ts': `export const bar = 2`,
},
{
entry: ['src/input.ts', 'src/bar/input.ts'],
}
)
expect(outFiles).toMatchInlineSnapshot(`
Array [
"bar/input.js",
"input.js",
]
`)
})

1 comment on commit 795d065

@vercel
Copy link

@vercel vercel bot commented on 795d065 Nov 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.