Skip to content

Commit

Permalink
refactor(app): export main()
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed May 28, 2024
1 parent 827e0da commit de3129c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,10 @@ async function main() {
});
}

main();
// If file called directly, then run function
/* istanbul ignore if: testing through module exports */
if (require.main === module) {
main();
}

module.exports = main;

0 comments on commit de3129c

Please sign in to comment.