Angular 21 docs page still has Jasmine example, which doesn't work with Vitest · Issue #65987 · angular/angular · GitHub
Skip to content

Angular 21 docs page still has Jasmine example, which doesn't work with Vitest #65987

Description

@NateRobinsonAA

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


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: docsRelated to the documentation

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions