kick
Version:
Kickstarter and generator for AngularJS based on ES6, webpack and best practices
26 lines (18 loc) • 764 B
JavaScript
;
const TestHelpers = require('../support/helpers');
const fs = require('fs-extra');
const child_process = require('child_process');
const kick = 'node ' + __dirname + '/../../bin/kick ';
describe('$ kick start', () => {
beforeAll(TestHelpers.createApp);
afterAll(TestHelpers.cleanup);
it('should not run without packages', () => {
const output = child_process.execSync(kick + 'start').toString();
expect(output).toMatch("Can't start server with missing packages");
});
it('should run npm start task', () => {
fs.ensureDirSync('node_modules');
const output = child_process.execSync(kick + 'start', { timeout: 5000 }).toString();
expect(output).toMatch("Running webpack-dev-server");
});
});