Skip to content

Commit

Permalink
Update integration.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
devjiwonchoi authored Nov 17, 2023
1 parent 0dbbde0 commit 7e4670d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,17 +313,17 @@ const testCases: {
},
},
{
name: 'bin',
name: 'bin/single-path',
args: [],
async expected(dir) {
const distFiles = [
join(dir, './dist/bin/index.js'),
join(dir, './dist/bin/index.d.ts'),
join(dir, './dist/bin.js'),
join(dir, './dist/bin.d.ts'),
]
for (const f of distFiles) {
expect(await existsFile(f)).toBe(true)
}
expect(await fs.readFile(distFiles[1], 'utf-8')).toContain(
expect(await fs.readFile(distFiles[0], 'utf-8')).toContain(
'#!/usr/bin/env node',
)
},
Expand Down

0 comments on commit 7e4670d

Please sign in to comment.