3 ms·
How do you test applications written with Htmx? Does it all need to be ui test harness (running in a browser), or can you unit test components somehow? I'm hap
by xrd 6y ago
How do you test applications written with Htmx? Does it all need to be ui test harness (running in a browser), or can you unit test components somehow?
I'm happy you noted the test coverage for the library itself is reaching your standards. That's a great sign.
- recursivedoubts 6y agoYou can use the same technique I use in my tests: sinon.js has FakeServer that mocks AJAX calls. I think I'd look into a headless chrome setup against my real server if I was doing a large app.