tswatch/test/test.ts

22 lines
544 B
TypeScript
Raw Normal View History

2018-10-28 00:48:43 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
import * as tswatch from '../ts/index';
let testTsWatchInstance: tswatch.TsWatch;
tap.test('should create a valid TsWatch instance', async () => {
testTsWatchInstance = new tswatch.TsWatch({
filePathToWatch: process.cwd(),
2018-10-28 18:28:08 +00:00
commandToExecute: 'npm -v',
timeout: 1000
2018-10-28 00:48:43 +00:00
});
});
tap.test('should start the tswatch instance', async () => {
2018-10-28 18:28:08 +00:00
testTsWatchInstance.start();
2018-10-28 00:48:43 +00:00
console.log('test executed');
});
2019-05-08 09:16:24 +00:00
tap.test('should run abitrary commands', async () => {});
2018-10-28 00:48:43 +00:00
tap.start();