Skip to content

Commit

Permalink
fix: testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
mansonchor committed Jul 15, 2022
1 parent ed033c0 commit dd68bd2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test/fixtures/ts/node_modules/aliyun-egg/
test/fixtures/example-ts-ets/typings/
!test/fixtures/example-ts-ets/node_modules/
!test/fixtures/example-ts-simple/node_modules/
!test/fixtures/my-egg-bin/node_modules/
!test/fixtures/test-files/node_modules/

**/run/*.json
.tmp
Expand Down
7 changes: 4 additions & 3 deletions test/my-egg-bin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('test/my-egg-bin.test.js', () => {
'--es_staging', '--harmony', '--harmony_default_parameters',
];
coffee.fork(eggBin, args, { cwd })
// .debug()
.debug()
.expect('stdout', /"baseDir":".\/dist"/)
.expect('stdout', /debugPort: 6666/)
.notExpect('stdout', /"argv: {.*debugBrk":true/)
Expand Down Expand Up @@ -106,9 +106,10 @@ describe('test/my-egg-bin.test.js', () => {
'--typescript',
'--declarations',
];
coffee.fork(eggBin, args, { cwd: path.join(__dirname, 'fixtures/my-egg-bin') })
coffee.fork(eggBin, args, { cwd })
// .debug()
.expect('stdout', /custom-egg-ts-helper\/register\.js/)
.expect('stdout', /custom-egg-ts-helper/)
.expect('stdout', /register\.js/)
.expect('code', 0)
.end(done);
});
Expand Down

0 comments on commit dd68bd2

Please sign in to comment.