fix(logging): Improve warning logging and add permission settings file
This commit is contained in:
		| @@ -443,6 +443,20 @@ export class TsTestLogger { | ||||
|     this.log(this.format(`\n${status}`, statusColor)); | ||||
|   } | ||||
|    | ||||
|   // Warning display | ||||
|   warning(message: string) { | ||||
|     if (this.options.json) { | ||||
|       this.logJson({ event: 'warning', message }); | ||||
|       return; | ||||
|     } | ||||
|      | ||||
|     if (this.options.quiet) { | ||||
|       console.log(`WARNING: ${message}`); | ||||
|     } else { | ||||
|       this.log(this.format(`   ⚠️  ${message}`, 'orange')); | ||||
|     } | ||||
|   } | ||||
|    | ||||
|   // Error display | ||||
|   error(message: string, file?: string, stack?: string) { | ||||
|     if (this.options.json) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user