// import { createClient } from './index'; // type Config = Parameters[0]; describe('createClient', () => { it('works', () => { expect(true).toBe(true); }); // it('1 config, 1 input, 1 output', async () => { // const config: Config = { // dryRun: true, // input: { // info: { title: 'foo', version: '1.0.0' }, // openapi: '3.0.0', // }, // logs: { // level: 'silent', // }, // output: 'output', // plugins: ['@hey-api/sdk'], // }; // const results = await createClient(config); // expect(results).toHaveLength(1); // }); // it('1 config, 2 inputs, 1 output', async () => { // const config: Config = { // dryRun: true, // input: [ // { // info: { title: 'foo', version: '1.0.0' }, // openapi: '3.0.0', // }, // { // info: { title: 'bar', version: '1.0.0' }, // openapi: '3.0.0', // paths: {}, // }, // ], // logs: { // level: 'silent', // }, // output: 'output', // plugins: ['@hey-api/sdk'], // }; // const results = await createClient(config); // expect(results).toHaveLength(1); // }); // it('1 config, 2 inputs, 2 outputs', async () => { // const config: Config = { // dryRun: true, // input: [ // { // info: { title: 'foo', version: '1.0.0' }, // openapi: '3.0.0', // }, // { // info: { title: 'bar', version: '1.0.0' }, // openapi: '3.0.0', // paths: {}, // }, // ], // logs: { // level: 'silent', // }, // output: ['output', 'output2'], // plugins: ['@hey-api/sdk'], // }; // const results = await createClient(config); // expect(results).toHaveLength(2); // }); // it('2 configs, 1 input, 1 output', async () => { // const config: Config = [ // { // dryRun: true, // input: { // info: { title: 'foo', version: '1.0.0' }, // openapi: '3.0.0', // }, // logs: { // level: 'silent', // }, // output: 'output', // plugins: ['@hey-api/sdk'], // }, // { // dryRun: true, // input: { // info: { title: 'bar', version: '1.0.0' }, // openapi: '3.0.0', // }, // logs: { // level: 'silent', // }, // output: 'output2', // plugins: ['@hey-api/sdk'], // }, // ]; // const results = await createClient(config); // expect(results).toHaveLength(2); // }); // it('2 configs, 2 inputs, 2 outputs', async () => { // const config: Config = [ // { // dryRun: true, // input: [ // { // info: { title: 'foo', version: '1.0.0' }, // openapi: '3.0.0', // }, // { // info: { title: 'bar', version: '1.0.0' }, // openapi: '3.0.0', // paths: {}, // }, // ], // logs: { // level: 'silent', // }, // output: ['output', 'output2'], // plugins: ['@hey-api/sdk'], // }, // { // dryRun: true, // input: [ // { // info: { title: 'baz', version: '1.0.0' }, // openapi: '3.0.0', // }, // { // info: { title: 'qux', version: '1.0.0' }, // openapi: '3.0.0', // paths: {}, // }, // ], // logs: { // level: 'silent', // }, // output: ['output3', 'output4'], // plugins: ['@hey-api/sdk'], // }, // ]; // const results = await createClient(config); // expect(results).toHaveLength(4); // }); });