0Pricing
Edge Computing with Cloudflare Workers & Deno · Lesson

Testing Deno Applications

Write and run tests for Deno apps using the built-in test runner, assertions, and mocking for reliable edge code.

Built-in Testing

Deno ships with a built-in test runner — no extra framework or config needed. Just write tests and run deno test.

Your First Test

Register a test with Deno.test. It takes a name and a function.

Deno.test('adds numbers', () => {
  const sum = 2 + 3;
  if (sum !== 5) throw new Error('wrong');
});

All lessons in this course

  1. Deno Runtime Essentials
  2. Module System & Permissions
  3. Developing Local Deno Apps
  4. Testing Deno Applications
← Back to Edge Computing with Cloudflare Workers & Deno