Skip to content

Commit

Permalink
fix: test case under node 8
Browse files Browse the repository at this point in the history
  • Loading branch information
dengruoqi committed Feb 16, 2022
1 parent 2657ff8 commit 05db75e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,12 @@ describe('test/ts.test.js', () => {
const cwd = path.join(__dirname, './fixtures/example-ts-custom-compiler');

// install custom ts-node
await exec('npx cnpm install ts-node@10.5.0', { cwd: path.join(__dirname, './fixtures') });
await exec('npx cnpm install ts-node@8.10.2', { cwd: path.join(__dirname, './fixtures') });

const { stderr, code } = await coffee.fork(eggBin, [ 'dev', '--ts' ], { cwd, env: { DEBUG: 'egg-bin' } })
.debug()
.end();
assert(/ts-node@10\.5\.0/.test(stderr));
assert(/ts-node@8\.10\.2/.test(stderr));
assert.equal(code, 0);
});

Expand Down

0 comments on commit 05db75e

Please sign in to comment.