chore: organize test files

This commit is contained in:
Igor Randjelovic
2020-12-01 19:25:29 +01:00
parent 65b214b845
commit 016ecd19a8
22 changed files with 339 additions and 140 deletions

View File

@ -11,7 +11,7 @@ function cleanup(data: any[]) {
}
export function error(...data: any): Error {
console.error(`[@nativescript/webpack] Error: \n`, ...cleanup(data));
console.warn(`[@nativescript/webpack] Error: \n`, ...cleanup(data));
// we return the error - the caller can throw or ignore
if (typeof data[0] === 'string') {
@ -26,7 +26,7 @@ export function warn(...data: any): void {
}
export function info(...data: any): void {
console.info(`[@nativescript/webpack] Info: \n`, ...cleanup(data));
console.log(`[@nativescript/webpack] Info: \n`, ...cleanup(data));
}
// todo: refine