- Works with Jest (e.g., put it in `setupFilesAfterEnv`)
- Allows local unit tests for GAS code using XmlService
- Supports parsing and serializing XML (partially complete, not 100%)
- API is designed to be a drop-in replacement for GAS's XmlService
Repo: <https://github.com/yoshi389111/fake-xmlservice>
Package: <https://www.npmjs.com/package/@yoshi389111/fake-xmlservice>
It's not fully complete yet, but it already works for my use cases. I'd love feedback on:
- What features you'd expect in a testing library for GAS XmlService
- Any edge cases you ran into with XmlService in your projects
Thanks!