Extract the log function
parent
f60f1b34e9
commit
a71feba251
|
@ -0,0 +1,5 @@
|
||||||
|
const log = (...args) => {
|
||||||
|
process.stdout.write(...args)
|
||||||
|
}
|
||||||
|
|
||||||
|
export { log }
|
|
@ -1,6 +1,5 @@
|
||||||
import chalk from 'chalk'
|
import chalk from 'chalk'
|
||||||
|
import { log } from '../lib/log.js'
|
||||||
const log = (...args) => process.stdout.write(...args)
|
|
||||||
|
|
||||||
const errorreporter = () => {
|
const errorreporter = () => {
|
||||||
const report = {
|
const report = {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import chalk from 'chalk'
|
import chalk from 'chalk'
|
||||||
import { stackParser } from '../lib/stackparser.js'
|
import { stackParser } from '../lib/stackparser.js'
|
||||||
|
import { log } from '../lib/log.js'
|
||||||
const log = (...args) => console.log(...args)
|
|
||||||
|
|
||||||
const linereporter = () => {
|
const linereporter = () => {
|
||||||
const lines = []
|
const lines = []
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import chalk from 'chalk'
|
import chalk from 'chalk'
|
||||||
|
import { log } from '../lib/log.js'
|
||||||
const log = (...args) => process.stdout.write(...args)
|
|
||||||
|
|
||||||
const summaryreporter = () => {
|
const summaryreporter = () => {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue