File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
adev-ja/src/content/guide Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ await fixture.whenStable();
119119可能な限り` fixture.detectChanges() ` の使用を避けてください。これにより、
120120Angularが変更検知をスケジュールしていない場合に、
121121変更検知が強制的に実行されます。テストでは、これらの通知が発生していることを確認し、
122- テストで手動で強制的に発生させるのではなく 、
122+ 手動で強制的に発生させるのではなく 、
123123Angularが状態を同期するタイミングを処理できるようにする必要があります。
124124
125125### 更新が検出されることを確認するためのデバッグモードチェック
Original file line number Diff line number Diff line change @@ -24,8 +24,12 @@ async function main() {
2424 process . env . FORCE_COLOR = '1' ;
2525
2626 const files = await getTranslatedFiles ( ) ;
27- const { stdout } = await $$ `textlint ${ fix ? [ '--fix' ] : [ ] } ${ files } ` ;
27+ const { stdout, failed } = await $$ `textlint ${ fix ? [ '--fix' ] : [ ] } ${ files } ` ;
2828 consola . log ( stdout . replace ( 'textlint --fix [file]' , 'yarn lint --fix' ) ) ;
29+
30+ if ( failed ) {
31+ process . exit ( 1 ) ;
32+ }
2933}
3034
3135/**
You can’t perform that action at this time.
0 commit comments