Move reporter to sub-folder
parent
4c3cca0cd3
commit
cb2f0b54a0
4
index.js
4
index.js
|
@ -1,7 +1,5 @@
|
||||||
|
|
||||||
import { consolereporter } from './consolereporter.js'
|
import { consolereporter, linereporter, totalreporter } from './reporter/index.js'
|
||||||
import { linereporter } from './linereporter.js'
|
|
||||||
import { totalreporter } from './totalreporter.js'
|
|
||||||
import { runifmain } from './runifmain.js'
|
import { runifmain } from './runifmain.js'
|
||||||
import { suite } from './suite.js'
|
import { suite } from './suite.js'
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ const consolereporter = () => {
|
||||||
return report
|
return report
|
||||||
}
|
}
|
||||||
|
|
||||||
import { stackParser } from './stackparser.js'
|
import { stackParser } from '../stackparser.js'
|
||||||
const prettyError = (error) => {
|
const prettyError = (error) => {
|
||||||
if (typeof error == 'string') {
|
if (typeof error == 'string') {
|
||||||
log(chalk.yellowBright(error))
|
log(chalk.yellowBright(error))
|
|
@ -0,0 +1,5 @@
|
||||||
|
import { consolereporter } from './consolereporter.js'
|
||||||
|
import { linereporter } from './linereporter.js'
|
||||||
|
import { totalreporter } from './totalreporter.js'
|
||||||
|
|
||||||
|
export { consolereporter, linereporter, totalreporter }
|
|
@ -1,5 +1,5 @@
|
||||||
import chalk from 'chalk'
|
import chalk from 'chalk'
|
||||||
import { stackParser } from './stackparser.js'
|
import { stackParser } from '../stackparser.js'
|
||||||
|
|
||||||
const linereporter = () => {
|
const linereporter = () => {
|
||||||
const lines = []
|
const lines = []
|
Loading…
Reference in New Issue