Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
66 views

Creating a real unit test in Karma for Angular code [closed]

This is a piece of test code made for the Angular application. The router object is a mock provided by the RouterTestingModule dependency. I wonder if such a test can be considered a unit test (...
Jelly's user avatar
  • 23
6 votes
1 answer
179 views

Support static typing / analysis with dependency injection

I am working on creating a test library, and I found DI to be pretty convenient, maybe even to create more functional coding patterns. Normally we can have an awkward before-hook setup in Node.js ...
Alexander Mills's user avatar
1 vote
2 answers
423 views

Function for getting strings consisting of random characters

I've made this function for to be used while testing. ...
michael.zech's user avatar
  • 4,972