mirror of
https://github.com/egoist/tsup.git
synced 2025-12-08 20:35:58 +00:00
test: multiple entry with the same base name
This commit is contained in:
parent
d079b9b1c4
commit
795d065eae
@ -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",
|
||||
]
|
||||
`)
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user