Merge pull request #5 from Accords-Library/develop
Disable testing log on npm build
This commit is contained in:
commit
e6214600bc
|
@ -1,4 +1,2 @@
|
||||||
NODE_ENV=test
|
export ENABLE_TESTING_LOG=true
|
||||||
# npx next build | tee ./testing_logs/$(date +"%Y-%m-%d---%H-%M-%S").log
|
|
||||||
|
|
||||||
npx next build 2> >(tee ./testing_logs/$(date +"%Y-%m-%d---%H-%M-%S").stderr.tsv) 1> >(tee ./testing_logs/$(date +"%Y-%m-%d---%H-%M-%S").stdout.tsv)
|
npx next build 2> >(tee ./testing_logs/$(date +"%Y-%m-%d---%H-%M-%S").stderr.tsv) 1> >(tee ./testing_logs/$(date +"%Y-%m-%d---%H-%M-%S").stdout.tsv)
|
|
@ -173,12 +173,14 @@ function prettyTestWritter(
|
||||||
process.env.NEXT_PUBLIC_URL_CMS + url,
|
process.env.NEXT_PUBLIC_URL_CMS + url,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (process.env.ENABLE_TESTING_LOG) {
|
||||||
if (level === TestingLevel.Warning) {
|
if (level === TestingLevel.Warning) {
|
||||||
console.warn(line.join("\t"));
|
console.warn(line.join("\t"));
|
||||||
} else {
|
} else {
|
||||||
console.error(line.join("\t"));
|
console.error(line.join("\t"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export function capitalizeString(string: string): string {
|
export function capitalizeString(string: string): string {
|
||||||
function capitalizeWord(word: string): string {
|
function capitalizeWord(word: string): string {
|
||||||
|
|
Loading…
Reference in New Issue