Fork me on GitHub

Hi all! I usually add a to improve my debug experience in cljs. I thought it would be an interesting exercise to write a test for the debug macro as well. If anyone has any feedback that would be great! For example • I’m manually setting the console.log - maybe there is another way to do this? • Maybe the approach to testing this in general is flawed? (the idea for stubbing the console.log came from the with-log macro in which I thought was pretty cool so as to not flood your tests /log files with logs) • What’s a good way of handling a macro where you need to access something stateful? (in this case I used an atom which we pass in) Thanks in advance!!