diff --git a/src/commands/build/index.spec.ts b/src/commands/build/index.spec.ts index 6ab53216..45b90235 100644 --- a/src/commands/build/index.spec.ts +++ b/src/commands/build/index.spec.ts @@ -17,13 +17,13 @@ describe('Build command', () => { describe('input', () => { test('should be absolute', '--input ./input', { - input: expect.stringMatching(/^\/.*?\/input$/), + input: expect.stringMatching(/^(\/|[A-Z]:\\).*?(\/|\\)input$/), }); }); describe('output', () => { test('should be absolute', '--output ./output', { - output: expect.stringMatching(/^\/.*?\/output$/), + output: expect.stringMatching(/^(\/|[A-Z]:\\).*?(\/|\\)output$/), }); }); diff --git a/src/commands/translate/index.spec.ts b/src/commands/translate/index.spec.ts index ada1eac0..024bf4ac 100644 --- a/src/commands/translate/index.spec.ts +++ b/src/commands/translate/index.spec.ts @@ -317,8 +317,8 @@ describe('Translate command', () => { expect(instance.provider?.translate).toBeCalledWith( expect.anything(), expect.objectContaining({ - input: expect.stringMatching(/^\//), - output: expect.stringMatching(/^\//), + input: expect.stringMatching(/^(\/|[A-Z]:\\).*?/), + output: expect.stringMatching(/^(\/|[A-Z]:\\).*?/), }), ); });