Skip to content

Commit bf56757

Browse files
committed
chore: add types to cli
1 parent d12e199 commit bf56757

File tree

10 files changed

+404
-446
lines changed

10 files changed

+404
-446
lines changed

packages/openapi-ts-tests/main/test/hey-api.ts renamed to dev/hey-api.ts

File renamed without changes.

packages/openapi-ts-tests/main/test/bin.test.ts

Lines changed: 0 additions & 368 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import path from 'node:path';
2+
3+
import { sync } from 'cross-spawn';
4+
import { describe, expect, it } from 'vitest';
5+
6+
import { getSpecsPath } from '../../utils';
7+
8+
const specs = getSpecsPath();
9+
10+
describe('bin', () => {
11+
it('openapi-ts works', () => {
12+
const result = sync('openapi-ts', [
13+
'--input',
14+
path.resolve(specs, 'v3.json'),
15+
'--output',
16+
path.resolve(__dirname, '.gen'),
17+
'--dry-run',
18+
'true',
19+
]);
20+
expect(result.error).toBeFalsy();
21+
expect(result.status).toBe(0);
22+
});
23+
});

0 commit comments

Comments
 (0)