Testing
Test your Epic API for a production ready app.
Testing plays a crucial role in software development, a necessary step for deploying production applications. Epic API offers a convenient solution for testing applications through its integrated Deno testing libraries. By default, Epic API leverages the Oak framework for handling requests, and its testing capabilities are readily configured with the internal fetch library.
Testing within the Epic API is straightforward and allows flexibility in choosing your preferred testing framework. The framework has no restrictions, enabling you to substitute specific elements like the test runner seamlessly. Regardless of the chosen tools, you can still benefit from the pre-existing testing functionalities provided by the Epic API.
You can read more about testing in Deno here.
You will be writing your tests under the ./tests/
folder at the root of your project. After writing your tests execute the following command:
# Execute the built-in Deno task to test your app
deno task test
Last updated
Was this helpful?