Describe the problem that you experienced
When looking up the Vitest approach to async callbacks in spec tests, this page gives the Jasmine implementation. However, Vitest has no such "DoneFN" type, and the example is therefore incorrect.
The page: https://github.com/angular/angular/blob/main/adev/src/content/guide/testing/services.md
The Vitest documentation: https://vitest.dev/guide/migration.html#done-callback
Enter the URL of the topic with the problem
https://github.com/angular/angular/blob/main/adev/src/content/guide/testing/services.md
Describe what you were looking for in the documentation
The Vitest DoneFN equivalent
Describe the actions that led you to experience the problem
No response
Describe what you want to experience that would fix the problem
No response
Add a screenshot if that helps illustrate the problem
No response
If this problem caused an exception or error, please paste it here
If the problem is browser-specific, please specify the device, OS, browser, and version
Provide any additional information here in as much as detail as you can
Describe the problem that you experienced
When looking up the Vitest approach to async callbacks in spec tests, this page gives the Jasmine implementation. However, Vitest has no such "DoneFN" type, and the example is therefore incorrect.
The page: https://github.com/angular/angular/blob/main/adev/src/content/guide/testing/services.md
The Vitest documentation: https://vitest.dev/guide/migration.html#done-callback
Enter the URL of the topic with the problem
https://github.com/angular/angular/blob/main/adev/src/content/guide/testing/services.md
Describe what you were looking for in the documentation
The Vitest DoneFN equivalent
Describe the actions that led you to experience the problem
No response
Describe what you want to experience that would fix the problem
No response
Add a screenshot if that helps illustrate the problem
No response
If this problem caused an exception or error, please paste it here
If the problem is browser-specific, please specify the device, OS, browser, and version
Provide any additional information here in as much as detail as you can