Skip to content

Commit

Permalink
test(cli): fix stdout comparison by --json
Browse files Browse the repository at this point in the history
  • Loading branch information
jjangga0214 committed Dec 5, 2023
1 parent c38d239 commit c7ddc9c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/cli/test/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,37 @@ describe('test', () => {
test('cjs-js', async () => {
const { stdout } = await $({
cwd: `${examples}/cjs-js`,
})`pnpm haetae helloworld`
})`pnpm haetae helloworld --json`
expect(stdout).toContain('Command helloworld is successfully executed.')
})
test('cjs-ts-1', async () => {
const { stdout } = await $({
cwd: `${examples}/cjs-ts-1`,
})`pnpm haetae helloworld`
})`pnpm haetae helloworld --json`
expect(stdout).toContain('Command helloworld is successfully executed.')
})
test('cjs-ts-2', async () => {
const { stdout } = await $({
cwd: `${examples}/cjs-ts-2`,
})`pnpm haetae helloworld`
})`pnpm haetae helloworld --json`
expect(stdout).toContain('Command helloworld is successfully executed.')
})
test('esm-js', async () => {
const { stdout } = await $({
cwd: `${examples}/esm-js`,
})`pnpm haetae helloworld`
})`pnpm haetae helloworld --json`
expect(stdout).toContain('Command helloworld is successfully executed.')
})
test('esm-ts', async () => {
const { stdout } = await $({
cwd: `${examples}/esm-ts`,
})`pnpm haetae helloworld`
})`pnpm haetae helloworld --json`
expect(stdout).toContain('Command helloworld is successfully executed.')
})
test('my-calculator', async () => {
const { stdout } = await $({
cwd: `${examples}/my-calculator`,
})`pnpm haetae test`
})`pnpm haetae test --json`
expect(stdout).toContain('Command test is successfully executed.')
})
})

0 comments on commit c7ddc9c

Please sign in to comment.