Test addons, don't use gulp
This commit is contained in:
+10
-2
@@ -10,8 +10,16 @@ const path = require('path');
|
|||||||
const env = { ...process.env };
|
const env = { ...process.env };
|
||||||
env.NODE_PATH = path.resolve(__dirname, '../out');
|
env.NODE_PATH = path.resolve(__dirname, '../out');
|
||||||
|
|
||||||
cp.spawnSync('yarn', ['mocha'], {
|
const args = [
|
||||||
cwd: path.join(__dirname, '..'),
|
'./out/*test.js',
|
||||||
|
'./out/**/*test.js',
|
||||||
|
'./out/*integration.js',
|
||||||
|
'./out/**/*integration.js',
|
||||||
|
'./lib/**/*test.js'
|
||||||
|
];
|
||||||
|
|
||||||
|
cp.spawnSync('./node_modules/.bin/mocha', args, {
|
||||||
|
cwd: path.resolve(__dirname, '..'),
|
||||||
stdio: 'inherit',
|
stdio: 'inherit',
|
||||||
env
|
env
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class MockTerminal {
|
|||||||
public searchHelper: TestSearchHelper;
|
public searchHelper: TestSearchHelper;
|
||||||
public cols: number;
|
public cols: number;
|
||||||
constructor(options: any) {
|
constructor(options: any) {
|
||||||
this._core = new (require('../../../lib/Terminal')).Terminal(options);
|
this._core = new (require('../../../out/Terminal')).Terminal(options);
|
||||||
this.searchHelper = new TestSearchHelper(this as any);
|
this.searchHelper = new TestSearchHelper(this as any);
|
||||||
this.cols = options.cols;
|
this.cols = options.cols;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user