Skip to content

Commit

Permalink
test: Attempt other syntax for flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidnioulz committed Sep 11, 2023
1 parent 854f590 commit e989e5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/__tests__/bin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ describe('vue-sfcmod binary', () => {
}
})

await expect(() => runBinary('/tmp/Input.vue', '-t', '/tmp/transformation.cjs')).not.toThrow()
await expect(() => runBinary('Input.vue', '-t', 'foo')).rejects.toThrow(
'Cannot find transformation module foo',
)
expect(prompt).not.toHaveBeenCalled()
})
})

0 comments on commit e989e5b

Please sign in to comment.