You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
not sure to understand what would be the expected behavior if your tests are spread into various files 🤔 would you have to add the wrapper on every test file ?
You can have something similar in the userland without introducing a breaking change here (and I am more comfortable with that idea ):
// ex: test-utils.js (or can be published as a package on top of zoraimport{createHarness}from'zora';exportwithReporter=(reporter)=>{constharness=createHarness();// auto-start reporting if that is what you want:setTimeout(()=>{harness.report({ reporter })},0);// export the test function or the whole API if neededreturnharness.test;}// then in your project: 'test-harness.js'exportconsttest=withReporter(someReporter);// and in your spec filesimport{test}from'./test-harness.js';/*test(`...`, t => {});etc*/
Thanks for creating zora-reporters and supporting zora! I am using Zora in all my personal projects!
I think it will be cool to change this
To something like this
This
hold
andreport
doesn't make sense to me. Anyway I am happy that we have ES6 reporters now.The text was updated successfully, but these errors were encountered: