-
Notifications
You must be signed in to change notification settings - Fork 0
FAQ
Is two-go two Go services? No. It is a single Node.js (JavaScript) library for API testing. No Go (the language), nothing to deploy.
Is it a unit testing framework? No. It is for API and service testing (integration and e2e), and it runs inside the unit test runner you already use. Its assertions just read like the unit test assertions you know.
Do I need TypeScript? No. It is plain ESM JavaScript. Types ship with the
package for editors and TS users, but they are never required and there is no
@types install.
CommonJS? two-go is ESM only. Use import, or a dynamic import() from a
CommonJS file.
Why zero dependencies? Faster installs, nothing to audit, and it runs anywhere Node 18 runs. The optional AI layer talks to providers over the native fetch with your key, so even that adds no dependency.
Can I use it inside Postman scripts? No. Postman's sandbox does not allow
arbitrary npm packages. Use the toCurl() helper to move a request out of
two-go and into Postman instead.
Which test runners work? The built-in runner and CLI, plus node:test,
Jest, Vitest, and Mocha. Because assertions throw, no adapter is needed. See
BDD and the
examples repo for one folder per
runner.
Where do I report issues or ask for features? github.com/tugkanboz/two-go/issues.