Skip to content

Commit

Permalink
docs(typescript): Add --noEmit to unittest example code (#4250)
Browse files Browse the repository at this point in the history
  • Loading branch information
nightink committed Apr 7, 2020
1 parent 3413e35 commit 7b6e437
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/source/en/tutorials/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,10 @@ In the end, add a test case to check whether your declaration works properly or
it('should compile ts without error', () => {
return coffee.fork(
require.resolve('typescript/bin/tsc'),
[ '-p', path.resolve(__dirname, './fixtures/apps/ts/tsconfig.json') ]
[
'-p', path.resolve(__dirname, './fixtures/apps/ts/tsconfig.json'),
'--noEmit',
]
)
// .debug()
.expect('code', 0)
Expand Down
5 changes: 4 additions & 1 deletion docs/source/zh-cn/tutorials/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,10 @@ import 'tsconfig-paths/register';
it('should compile ts without error', () => {
return coffee.fork(
require.resolve('typescript/bin/tsc'),
[ '-p', path.resolve(__dirname, './fixtures/apps/ts/tsconfig.json') ]
[
'-p', path.resolve(__dirname, './fixtures/apps/ts/tsconfig.json'),
'--noEmit',
]
)
// .debug()
.expect('code', 0)
Expand Down

0 comments on commit 7b6e437

Please sign in to comment.