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
I was trying to set up some tests for a macro extension I'm working on using bun:test but they refuse to work.
When executing in a normal environment (using bun run index.ts) the extension works as expected, but when I run my tests (with bun test), the processor acts as if the extension was never registered (even though it's included when I call registry.getInlineMacros()). I tried it with vitest as well, with the same result.
I'm not sure if this is a bug with the test runners, my setup, or asciidoctor.js. Do you have any idea whats changing between the two environments (normal and testing)?
The text was updated successfully, but these errors were encountered:
I was trying to set up some tests for a macro extension I'm working on using
bun:test
but they refuse to work.When executing in a normal environment (using
bun run index.ts
) the extension works as expected, but when I run my tests (withbun test
), the processor acts as if the extension was never registered (even though it's included when I callregistry.getInlineMacros()
). I tried it with vitest as well, with the same result.I have set up a minimal reproducible example here: https://github.com/jsimonrichard/asciidoctor.js-macro-test-issue-mre
I'm not sure if this is a bug with the test runners, my setup, or asciidoctor.js. Do you have any idea whats changing between the two environments (normal and testing)?
The text was updated successfully, but these errors were encountered: