insomnia/packages/insomnia-smoke-test/cli/app.test.js

13 lines
353 B
JavaScript
Raw Normal View History

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';
const { failed } = execa.sync(getBinPathSync({ cwd: '../insomnia-inso' }), command.split(' '));
expect(failed).toBe(false);
});
});