diff --git a/src/__tests__/bin.spec.ts b/src/__tests__/bin.spec.ts index 6b6f7f9..5d8da45 100644 --- a/src/__tests__/bin.spec.ts +++ b/src/__tests__/bin.spec.ts @@ -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() }) })