mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
5fa8f0069d
* remove babel and add configs * add ts-node * lint scripts * eslint override * remove type module * add expect errors * update js files to ts * fix electron import * remove errors * update readme * add build step * typesync * add eslintignore
14 lines
390 B
TypeScript
14 lines
390 B
TypeScript
import execa from 'execa';
|
|
import { getBinPathSync } from 'get-bin-path';
|
|
|
|
describe('run test', () => {
|
|
it('can run unit test', () => {
|
|
const command = 'run test -a fixtures/inso-nedb TestSuite -e Dev';
|
|
|
|
// @ts-expect-error TSCONVERSION
|
|
const { failed } = execa.sync(getBinPathSync({ cwd: '../insomnia-inso' }), command.split(' '));
|
|
|
|
expect(failed).toBe(false);
|
|
});
|
|
});
|