Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghx committed Jul 5, 2022
1 parent 88cbdfd commit 7a30237
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions lib/cmd/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,8 @@ class TestCommand extends Command {
console.warn('[egg-bin] don\'t need to manually require `intelli-espower-loader` anymore');
} else if (testArgv.espower) {
if (testArgv.typescript) {
if (!requireArr.includes(testArgv.tscompiler)) {
requireArr.push(require.resolve(testArgv.tscompiler));
}

// espower-typescript must append after ts-node
requireArr.push(require.resolve('../espower-typescript'));
requireArr.push(require.resolve(testArgv.tscompiler), require.resolve('../espower-typescript'));
} else {
requireArr.push(require.resolve('intelli-espower-loader'));
}
Expand Down
2 changes: 1 addition & 1 deletion test/ts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('test/ts.test.js', () => {

it('should cov app', () => {
return coffee.fork(eggBin, [ 'cov', '--ts' ], { cwd })
.debug()
// .debug()
.expect('stdout', /hi, egg, 123456/)
.expect('stdout', /ts env: true/)
.expect('stdout', os.platform() === 'win32' ? /Coverage summary/ : /Statements.*100%/)
Expand Down

0 comments on commit 7a30237

Please sign in to comment.