Skip to content

Commit

Permalink
test(vite-plugin-node): update
Browse files Browse the repository at this point in the history
  • Loading branch information
rxliuli committed Feb 6, 2024
1 parent 5832529 commit c863242
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite-plugin-node/src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('custom outDir', () => {
await $`node ${pathe.resolve(tempPath, 'out/index.js')}`
})

it.only('dts', async () => {
it('dts', async () => {
const entry = pathe.resolve(tempPath, 'index.ts')
await writeFile(pathe.resolve(tempPath, 'add.ts'), `export const add = (a: number, b: number) => a + b`)
await writeFile(entry, `export * from './add'`)
Expand All @@ -87,7 +87,7 @@ describe('custom outDir', () => {
plugins: [node({ entry: [entry], dts: { bundle: true }, outDir: 'out' })],
build: { minify: false },
})
expect(await fs.pathExists(pathe.resolve(tempPath, 'out/index.d.ts'))).true
expect(await fs.pathExists(pathe.resolve(tempPath, 'dist/index.d.ts'))).true
})
})

Expand Down

0 comments on commit c863242

Please sign in to comment.