Lately I had to debug a test that had been written in TypeScript and has been run via ts-mocha
.
So, actually I had to debug the transpiler output sorta directly.
And in lines like this:
(0, expect_1.default)(loadedTask.name).toBe(newTask.name);
only this (0, expression)
wrapping got me confused.
What is purpose of this (0, expr)
wrapping?
What JS gotcha this wrapping should prevent or workaround?
Thanks for your answers and time.