fork of hey-api/openapi-ts because I need some additional things
at feat/skip-token 21 lines 474 B view raw
1import path from 'node:path'; 2 3import { sync } from 'cross-spawn'; 4 5import { getSpecsPath } from '../../utils'; 6 7const specs = getSpecsPath(); 8 9describe('bin', () => { 10 it('openapi-ts works', () => { 11 const result = sync('openapi-ts', [ 12 '--input', 13 path.resolve(specs, '3.1.x', 'full.yaml'), 14 '--output', 15 path.resolve(__dirname, '.gen'), 16 '--dry-run', 17 ]); 18 expect(result.error).toBeFalsy(); 19 expect(result.status).toBe(0); 20 }); 21});