Using the test Command
Explore how to run tests in Deno using the test command, including filtering specific tests and handling fail-fast scenarios. Understand how tests help validate and document your code, with Deno's integrated test runner supporting secure and efficient testing.
We'll cover the following...
So far, we’ve learned how to run, install, and cache modules, as well as how to use permissions. As we write and run more complex programs, the need to test them starts to arise. We can do this with the test command.
Test runner
Included as part of the main binary, Deno also provides a test runner. The command for it, not surprisingly, is called test.
In this lesson, we’ll mainly explore the test command itself and not the test syntax. We’ll look at the syntax and best practices for it in more depth later in the course.
The test command ...