3 ms·
That looks very TypeScript/NodeJS-esque. I am not very familier with the .NET ech system. How do you write tests for some of these API examples? E.g. in the Nod
by pan69 4y ago
That looks very TypeScript/NodeJS-esque. I am not very familier with the .NET ech system. How do you write tests for some of these API examples? E.g. in the NodeJS eco-system we have e.g. Jest with Superserver and Nock (for mocking/intercepting outgoing requests). What does a typical test suite in a .NET core project look like?
- c0wb0yc0d3r 4y agoA basic example looks like: https://github.com/davidfowl/CommunityStandUpMinimalAPI/blob/main/TodoApi.Tests/TodoTests.cs https://github.com/davidfowl/CommunityStandUpMinimalAPI/blob... Some more documentation on integration tests: https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-6.0#basic-tests-with-the-default-webapplicationfactory-1 https://learn.microsoft.com/en-us/aspnet/core/test/integrati...