From d78314bb50c13b1ca90abf93c4f9244b1aef206f Mon Sep 17 00:00:00 2001 From: whxaxes Date: Sun, 25 Apr 2021 15:05:34 +0800 Subject: [PATCH] fix: ci --- .gitignore | 1 + test/fixtures/example-ts-simple/node_modules/egg/index.js | 8 ++++++++ .../example-ts-simple/node_modules/egg/package.json | 3 +++ test/ts.test.js | 4 ++-- 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 test/fixtures/example-ts-simple/node_modules/egg/index.js create mode 100644 test/fixtures/example-ts-simple/node_modules/egg/package.json diff --git a/.gitignore b/.gitignore index dc9d2e32..447db337 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ test/fixtures/ts/node_modules/aliyun-egg/ !test/fixtures/egg-require/node_modules/ test/fixtures/example-ts-ets/typings/ !test/fixtures/example-ts-ets/node_modules/ +!test/fixtures/example-ts-simple/node_modules/ **/run/*.json diff --git a/test/fixtures/example-ts-simple/node_modules/egg/index.js b/test/fixtures/example-ts-simple/node_modules/egg/index.js new file mode 100644 index 00000000..9995e5bd --- /dev/null +++ b/test/fixtures/example-ts-simple/node_modules/egg/index.js @@ -0,0 +1,8 @@ +'use strict'; + +module.exports = require('../../../../../node_modules/egg'); + +setTimeout(() => { + console.log('exit by master test end'); + process.exit(0); +}, 6000); diff --git a/test/fixtures/example-ts-simple/node_modules/egg/package.json b/test/fixtures/example-ts-simple/node_modules/egg/package.json new file mode 100644 index 00000000..6697ad3f --- /dev/null +++ b/test/fixtures/example-ts-simple/node_modules/egg/package.json @@ -0,0 +1,3 @@ +{ + "name": "egg" +} diff --git a/test/ts.test.js b/test/ts.test.js index 1874e87b..5469a812 100644 --- a/test/ts.test.js +++ b/test/ts.test.js @@ -155,13 +155,13 @@ describe('test/ts.test.js', () => { it('should start app with flags in app without eggInfo', async () => { const cwd = path.join(__dirname, './fixtures/example-ts-simple'); await coffee.fork(eggBin, [ 'dev', '--ts' ], { cwd }) - .debug() + // .debug() .expect('stdout', /started/) .expect('code', 0) .end(); await coffee.fork(eggBin, [ 'dev', '--ts', '--tsc=esbuild-register' ], { cwd }) - .debug() + // .debug() .expect('stdout', /started/) .expect('code', 0) .end();