diff --git a/index.js b/index.js index 01c40ad..c2d36e4 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,5 @@ -import { consolereporter } from './consolereporter.js' -import { linereporter } from './linereporter.js' -import { totalreporter } from './totalreporter.js' +import { consolereporter, linereporter, totalreporter } from './reporter/index.js' import { runifmain } from './runifmain.js' import { suite } from './suite.js' diff --git a/consolereporter.js b/reporter/consolereporter.js similarity index 92% rename from consolereporter.js rename to reporter/consolereporter.js index f6cac23..6f6f7be 100644 --- a/consolereporter.js +++ b/reporter/consolereporter.js @@ -29,7 +29,7 @@ const consolereporter = () => { return report } -import { stackParser } from './stackparser.js' +import { stackParser } from '../stackparser.js' const prettyError = (error) => { if (typeof error == 'string') { log(chalk.yellowBright(error)) diff --git a/reporter/index.js b/reporter/index.js new file mode 100644 index 0000000..2a8d4bc --- /dev/null +++ b/reporter/index.js @@ -0,0 +1,5 @@ +import { consolereporter } from './consolereporter.js' +import { linereporter } from './linereporter.js' +import { totalreporter } from './totalreporter.js' + +export { consolereporter, linereporter, totalreporter } \ No newline at end of file diff --git a/linereporter.js b/reporter/linereporter.js similarity index 91% rename from linereporter.js rename to reporter/linereporter.js index e52b167..2fa0c43 100644 --- a/linereporter.js +++ b/reporter/linereporter.js @@ -1,5 +1,5 @@ import chalk from 'chalk' -import { stackParser } from './stackparser.js' +import { stackParser } from '../stackparser.js' const linereporter = () => { const lines = [] diff --git a/totalreporter.js b/reporter/totalreporter.js similarity index 100% rename from totalreporter.js rename to reporter/totalreporter.js