Move reporter to sub-folder

master
Frédéric Matte 2022-12-04 23:43:20 -05:00
parent 4c3cca0cd3
commit cb2f0b54a0
5 changed files with 8 additions and 5 deletions

View File

@ -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'

View File

@ -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))

5
reporter/index.js Normal file
View File

@ -0,0 +1,5 @@
import { consolereporter } from './consolereporter.js'
import { linereporter } from './linereporter.js'
import { totalreporter } from './totalreporter.js'
export { consolereporter, linereporter, totalreporter }

View File

@ -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 = []