mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
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 };
|
||||
env.NODE_PATH = path.resolve(__dirname, '../out');
|
||||
|
||||
cp.spawnSync('yarn', ['mocha'], {
|
||||
cwd: path.join(__dirname, '..'),
|
||||
const args = [
|
||||
'./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',
|
||||
env
|
||||
});
|
||||
|
||||
@@ -16,7 +16,7 @@ class MockTerminal {
|
||||
public searchHelper: TestSearchHelper;
|
||||
public cols: number;
|
||||
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.cols = options.cols;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user