| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 234c710 commit cb7eb15
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -79,10 +79,11 @@ function start() { | |||
| 79 | 79 | } | |
| 80 | 80 | child.once('exit', (code) => { | |
| 81 | 81 | exited = true; | |
| 82 | + const waitingForChanges = 'Waiting for file changes before restarting...'; | ||
| 82 | 83 | if (code === 0) { | |
| 83 | - process.stdout.write(`${blue}Completed running ${kCommandStr}${white}\n`); | ||
| 84 | + process.stdout.write(`${blue}Completed running ${kCommandStr}. ${waitingForChanges}${white}\n`); | ||
| 84 | 85 | } else { | |
| 85 | - process.stdout.write(`${red}Failed running ${kCommandStr}${white}\n`); | ||
| 86 | + process.stdout.write(`${red}Failed running ${kCommandStr}. ${waitingForChanges}${white}\n`); | ||
| 86 | 87 | } | |
| 87 | 88 | }); | |
| 88 | 89 | return child; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -171,10 +171,10 @@ describe('watch mode', { concurrency: !process.env.TEST_PARALLEL, timeout: 60_00 | |||
| 171 | 171 | assert.strictEqual(stderr, ''); | |
| 172 | 172 | assert.deepStrictEqual(stdout, [ | |
| 173 | 173 | 'running', | |
| 174 | - `Completed running ${inspect(file)}`, | ||
| 174 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 175 | 175 | `Restarting ${inspect(file)}`, | |
| 176 | 176 | 'running', | |
| 177 | - `Completed running ${inspect(file)}`, | ||
| 177 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 178 | 178 | ]); | |
| 179 | 179 | }); | |
| 180 | 180 | ||
@@ -185,10 +185,10 @@ describe('watch mode', { concurrency: !process.env.TEST_PARALLEL, timeout: 60_00 | |||
| 185 | 185 | assert.strictEqual(stderr, ''); | |
| 186 | 186 | assert.deepStrictEqual(stdout, [ | |
| 187 | 187 | 'running', | |
| 188 | - `Completed running ${inspect(file)}`, | ||
| 188 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 189 | 189 | `Restarting ${inspect(file)}`, | |
| 190 | 190 | 'running', | |
| 191 | - `Completed running ${inspect(file)}`, | ||
| 191 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 192 | 192 | ]); | |
| 193 | 193 | }); | |
| 194 | 194 | ||
@@ -209,7 +209,7 @@ describe('watch mode', { concurrency: !process.env.TEST_PARALLEL, timeout: 60_00 | |||
| 209 | 209 | assert.deepStrictEqual(stdout, [ | |
| 210 | 210 | `Restarting ${inspect(jsFile)}`, | |
| 211 | 211 | 'ENV: value2', | |
| 212 | - `Completed running ${inspect(jsFile)}`, | ||
| 212 | + `Completed running ${inspect(jsFile)}. Waiting for file changes before restarting...`, | ||
| 213 | 213 | ]); | |
| 214 | 214 | } finally { | |
| 215 | 215 | await done(); | |
@@ -235,7 +235,7 @@ describe('watch mode', { concurrency: !process.env.TEST_PARALLEL, timeout: 60_00 | |||
| 235 | 235 | `Restarting ${inspect(jsFile)}`, | |
| 236 | 236 | 'ENV: value1', | |
| 237 | 237 | 'ENV2: newValue', | |
| 238 | - `Completed running ${inspect(jsFile)}`, | ||
| 238 | + `Completed running ${inspect(jsFile)}. Waiting for file changes before restarting...`, | ||
| 239 | 239 | ]); | |
| 240 | 240 | } finally { | |
| 241 | 241 | await done(); | |
@@ -261,7 +261,7 @@ describe('watch mode', { concurrency: !process.env.TEST_PARALLEL, timeout: 60_00 | |||
| 261 | 261 | `Restarting ${inspect(jsFile)}`, | |
| 262 | 262 | 'ENV: value1', | |
| 263 | 263 | 'ENV2: newValue', | |
| 264 | - `Completed running ${inspect(jsFile)}`, | ||
| 264 | + `Completed running ${inspect(jsFile)}. Waiting for file changes before restarting...`, | ||
| 265 | 265 | ]); | |
| 266 | 266 | } finally { | |
| 267 | 267 | await done(); | |
@@ -279,9 +279,9 @@ describe('watch mode', { concurrency: !process.env.TEST_PARALLEL, timeout: 60_00 | |||
| 279 | 279 | ||
| 280 | 280 | assert.match(stderr, /Error: fails\r?\n/); | |
| 281 | 281 | assert.deepStrictEqual(stdout, [ | |
| 282 | - `Failed running ${inspect(file)}`, | ||
| 282 | + `Failed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 283 | 283 | `Restarting ${inspect(file)}`, | |
| 284 | - `Failed running ${inspect(file)}`, | ||
| 284 | + `Failed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 285 | 285 | ]); | |
| 286 | 286 | }); | |
| 287 | 287 | ||
@@ -298,10 +298,10 @@ describe('watch mode', { concurrency: !process.env.TEST_PARALLEL, timeout: 60_00 | |||
| 298 | 298 | assert.strictEqual(stderr, ''); | |
| 299 | 299 | assert.deepStrictEqual(stdout, [ | |
| 300 | 300 | 'running', | |
| 301 | - `Completed running ${inspect(file)}`, | ||
| 301 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 302 | 302 | `Restarting ${inspect(file)}`, | |
| 303 | 303 | 'running', | |
| 304 | - `Completed running ${inspect(file)}`, | ||
| 304 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 305 | 305 | ]); | |
| 306 | 306 | assert.strictEqual(stderr, ''); | |
| 307 | 307 | }); | |
@@ -324,9 +324,9 @@ describe('watch mode', { concurrency: !process.env.TEST_PARALLEL, timeout: 60_00 | |||
| 324 | 324 | ||
| 325 | 325 | assert.match(stderr, /Error: Cannot find module/g); | |
| 326 | 326 | assert.deepStrictEqual(stdout, [ | |
| 327 | - `Failed running ${inspect(file)}`, | ||
| 327 | + `Failed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 328 | 328 | `Restarting ${inspect(file)}`, | |
| 329 | - `Failed running ${inspect(file)}`, | ||
| 329 | + `Failed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 330 | 330 | ]); | |
| 331 | 331 | }); | |
| 332 | 332 | ||
@@ -348,9 +348,9 @@ describe('watch mode', { concurrency: !process.env.TEST_PARALLEL, timeout: 60_00 | |||
| 348 | 348 | ||
| 349 | 349 | assert.match(stderr, /Error: Cannot find module/g); | |
| 350 | 350 | assert.deepStrictEqual(stdout, [ | |
| 351 | - `Failed running ${inspect(file)}`, | ||
| 351 | + `Failed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 352 | 352 | `Restarting ${inspect(file)}`, | |
| 353 | - `Failed running ${inspect(file)}`, | ||
| 353 | + `Failed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 354 | 354 | ]); | |
| 355 | 355 | }); | |
| 356 | 356 | ||
@@ -380,10 +380,10 @@ console.log(dependency); | |||
| 380 | 380 | assert.strictEqual(stderr, ''); | |
| 381 | 381 | assert.deepStrictEqual(stdout, [ | |
| 382 | 382 | '{}', | |
| 383 | - `Completed running ${inspect(file)}`, | ||
| 383 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 384 | 384 | `Restarting ${inspect(file)}`, | |
| 385 | 385 | '{}', | |
| 386 | - `Completed running ${inspect(file)}`, | ||
| 386 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 387 | 387 | ]); | |
| 388 | 388 | }); | |
| 389 | 389 | ||
@@ -398,10 +398,10 @@ console.log(dependency); | |||
| 398 | 398 | assert.strictEqual(stderr, ''); | |
| 399 | 399 | assert.deepStrictEqual(stdout, [ | |
| 400 | 400 | '{}', | |
| 401 | - `Completed running ${inspect(file)}`, | ||
| 401 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 402 | 402 | `Restarting ${inspect(file)}`, | |
| 403 | 403 | '{}', | |
| 404 | - `Completed running ${inspect(file)}`, | ||
| 404 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 405 | 405 | ]); | |
| 406 | 406 | }); | |
| 407 | 407 | ||
@@ -412,13 +412,13 @@ console.log(dependency); | |||
| 412 | 412 | assert.strictEqual(stderr, ''); | |
| 413 | 413 | assert.deepStrictEqual(stdout, [ | |
| 414 | 414 | 'running', | |
| 415 | - `Completed running ${inspect(file)}`, | ||
| 415 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 416 | 416 | `Restarting ${inspect(file)}`, | |
| 417 | 417 | 'running', | |
| 418 | - `Completed running ${inspect(file)}`, | ||
| 418 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 419 | 419 | `Restarting ${inspect(file)}`, | |
| 420 | 420 | 'running', | |
| 421 | - `Completed running ${inspect(file)}`, | ||
| 421 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 422 | 422 | ]); | |
| 423 | 423 | }); | |
| 424 | 424 | ||
@@ -435,10 +435,10 @@ console.log(values.random); | |||
| 435 | 435 | assert.strictEqual(stderr, ''); | |
| 436 | 436 | assert.deepStrictEqual(stdout, [ | |
| 437 | 437 | random, | |
| 438 | - `Completed running ${inspect(`${file} --random ${random}`)}`, | ||
| 438 | + `Completed running ${inspect(`${file} --random ${random}`)}. Waiting for file changes before restarting...`, | ||
| 439 | 439 | `Restarting ${inspect(`${file} --random ${random}`)}`, | |
| 440 | 440 | random, | |
| 441 | - `Completed running ${inspect(`${file} --random ${random}`)}`, | ||
| 441 | + `Completed running ${inspect(`${file} --random ${random}`)}. Waiting for file changes before restarting...`, | ||
| 442 | 442 | ]); | |
| 443 | 443 | }); | |
| 444 | 444 | ||
@@ -452,10 +452,10 @@ console.log(values.random); | |||
| 452 | 452 | assert.notStrictEqual(pid, importPid); | |
| 453 | 453 | assert.deepStrictEqual(stdout, [ | |
| 454 | 454 | 'running', | |
| 455 | - `Completed running ${inspect(file)}`, | ||
| 455 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 456 | 456 | `Restarting ${inspect(file)}`, | |
| 457 | 457 | 'running', | |
| 458 | - `Completed running ${inspect(file)}`, | ||
| 458 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 459 | 459 | ]); | |
| 460 | 460 | }); | |
| 461 | 461 | ||
@@ -472,10 +472,10 @@ console.log(values.random); | |||
| 472 | 472 | ||
| 473 | 473 | assert.deepStrictEqual(stdout, [ | |
| 474 | 474 | 'running', | |
| 475 | - `Completed running ${inspect(file)}`, | ||
| 475 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 476 | 476 | `Restarting ${inspect(file)}`, | |
| 477 | 477 | 'running', | |
| 478 | - `Completed running ${inspect(file)}`, | ||
| 478 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 479 | 479 | ]); | |
| 480 | 480 | }); | |
| 481 | 481 | ||
@@ -521,10 +521,10 @@ console.log(values.random); | |||
| 521 | 521 | assert.strictEqual(stderr, ''); | |
| 522 | 522 | assert.deepStrictEqual(stdout, [ | |
| 523 | 523 | 'running', | |
| 524 | - `Completed running ${inspect(file)}`, | ||
| 524 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 525 | 525 | `Restarting ${inspect(file)}`, | |
| 526 | 526 | 'running', | |
| 527 | - `Completed running ${inspect(file)}`, | ||
| 527 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 528 | 528 | ]); | |
| 529 | 529 | }); | |
| 530 | 530 | ||
@@ -536,10 +536,10 @@ console.log(values.random); | |||
| 536 | 536 | assert.strictEqual(stderr, ''); | |
| 537 | 537 | assert.deepStrictEqual(stdout, [ | |
| 538 | 538 | 'running', | |
| 539 | - `Completed running ${inspect(file)}`, | ||
| 539 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 540 | 540 | `Restarting ${inspect(file)}`, | |
| 541 | 541 | 'running', | |
| 542 | - `Completed running ${inspect(file)}`, | ||
| 542 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 543 | 543 | ]); | |
| 544 | 544 | }); | |
| 545 | 545 | ||
@@ -567,11 +567,11 @@ console.log(values.random); | |||
| 567 | 567 | assert.deepStrictEqual(stdout, [ | |
| 568 | 568 | 'hello', | |
| 569 | 569 | 'running', | |
| 570 | - `Completed running ${inspect(file)}`, | ||
| 570 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 571 | 571 | `Restarting ${inspect(file)}`, | |
| 572 | 572 | 'hello', | |
| 573 | 573 | 'running', | |
| 574 | - `Completed running ${inspect(file)}`, | ||
| 574 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 575 | 575 | ]); | |
| 576 | 576 | }); | |
| 577 | 577 | ||
@@ -599,11 +599,11 @@ console.log(values.random); | |||
| 599 | 599 | assert.deepStrictEqual(stdout, [ | |
| 600 | 600 | 'hello', | |
| 601 | 601 | 'running', | |
| 602 | - `Completed running ${inspect(file)}`, | ||
| 602 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 603 | 603 | `Restarting ${inspect(file)}`, | |
| 604 | 604 | 'hello', | |
| 605 | 605 | 'running', | |
| 606 | - `Completed running ${inspect(file)}`, | ||
| 606 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 607 | 607 | ]); | |
| 608 | 608 | }); | |
| 609 | 609 | ||
@@ -631,11 +631,11 @@ console.log(values.random); | |||
| 631 | 631 | assert.deepStrictEqual(stdout, [ | |
| 632 | 632 | 'hello', | |
| 633 | 633 | 'running', | |
| 634 | - `Completed running ${inspect(file)}`, | ||
| 634 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 635 | 635 | `Restarting ${inspect(file)}`, | |
| 636 | 636 | 'hello', | |
| 637 | 637 | 'running', | |
| 638 | - `Completed running ${inspect(file)}`, | ||
| 638 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 639 | 639 | ]); | |
| 640 | 640 | }); | |
| 641 | 641 | ||
@@ -663,11 +663,11 @@ console.log(values.random); | |||
| 663 | 663 | assert.deepStrictEqual(stdout, [ | |
| 664 | 664 | 'hello', | |
| 665 | 665 | 'running', | |
| 666 | - `Completed running ${inspect(file)}`, | ||
| 666 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 667 | 667 | `Restarting ${inspect(file)}`, | |
| 668 | 668 | 'hello', | |
| 669 | 669 | 'running', | |
| 670 | - `Completed running ${inspect(file)}`, | ||
| 670 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 671 | 671 | ]); | |
| 672 | 672 | }); | |
| 673 | 673 | ||
@@ -679,10 +679,10 @@ console.log(values.random); | |||
| 679 | 679 | assert.match(stderr, /listening on ws:\/\//); | |
| 680 | 680 | assert.deepStrictEqual(stdout, [ | |
| 681 | 681 | 'running', | |
| 682 | - `Completed running ${inspect(file)}`, | ||
| 682 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 683 | 683 | `Restarting ${inspect(file)}`, | |
| 684 | 684 | 'running', | |
| 685 | - `Completed running ${inspect(file)}`, | ||
| 685 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 686 | 686 | ]); | |
| 687 | 687 | }); | |
| 688 | 688 | ||
@@ -704,11 +704,11 @@ console.log(values.random); | |||
| 704 | 704 | assert.deepStrictEqual(stdout, [ | |
| 705 | 705 | 'hello', | |
| 706 | 706 | 'running', | |
| 707 | - `Completed running ${inspect(file)}`, | ||
| 707 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 708 | 708 | `Restarting ${inspect(file)}`, | |
| 709 | 709 | 'hello', | |
| 710 | 710 | 'running', | |
| 711 | - `Completed running ${inspect(file)}`, | ||
| 711 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 712 | 712 | ]); | |
| 713 | 713 | }); | |
| 714 | 714 | ||
@@ -788,7 +788,7 @@ process.on('message', (message) => { | |||
| 788 | 788 | `Restarting ${inspect(file)}`, | |
| 789 | 789 | 'running', | |
| 790 | 790 | 'Received: second message', | |
| 791 | - `Completed running ${inspect(file)}`, | ||
| 791 | + `Completed running ${inspect(file)}. Waiting for file changes before restarting...`, | ||
| 792 | 792 | ]); | |
| 793 | 793 | }); | |
| 794 | 794 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments