Testing & Debugging

Ensuring your Jetpath application is reliable and maintainable requires effective testing and debugging strategies. Jetpath’s structure, with its focus on distinct handlers, plugins, and middleware, lends itself well to various testing approaches.


Testing Strategies

A balanced testing approach typically involves a mix of unit, integration, and potentially end-to-end tests.

1. Unit Testing

2. Integration Testing

3. End-to-End (E2E) Testing


Debugging Techniques

When things go wrong, here’s how to troubleshoot your Jetpath application:

1. Console Logging

2. Runtime Debuggers

Use the built-in debugging capabilities of your chosen runtime:

3. Debugging Routing Issues

If requests aren’t hitting the handler you expect:

4. Debugging Validation Errors

5. Debugging Middleware


Next Steps