mirror of
https://github.com/egoist/tsup.git
synced 2025-12-08 20:35:58 +00:00
34 lines
717 B
TypeScript
34 lines
717 B
TypeScript
import { test } from 'vitest'
|
|
import { getTestName, run } from './utils'
|
|
|
|
test('bundle vue and ts-essentials with --dts --dts-resolve flag', async () => {
|
|
await run(
|
|
getTestName(),
|
|
{
|
|
'input.ts': `export * from 'vue'
|
|
export type { MarkRequired } from 'ts-essentials'
|
|
`,
|
|
},
|
|
{
|
|
flags: ['--dts', '--dts-resolve'],
|
|
},
|
|
)
|
|
})
|
|
|
|
test('bundle @egoist/path-parser with --dts --dts-resolve flag', async () => {
|
|
await run(
|
|
getTestName(),
|
|
{
|
|
'input.ts': `import type { PathParser } from '@egoist/path-parser'
|
|
export type Opts = {
|
|
parser: PathParser
|
|
route: string
|
|
}
|
|
`,
|
|
},
|
|
{
|
|
flags: ['--dts', '--dts-resolve'],
|
|
},
|
|
)
|
|
})
|