Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to use function and class names for describe and it names #3493

Closed
4 tasks done
alfaproject opened this issue Jun 2, 2023 · 1 comment · Fixed by #3497
Closed
4 tasks done

Allow to use function and class names for describe and it names #3493

alfaproject opened this issue Jun 2, 2023 · 1 comment · Fixed by #3497
Labels
enhancement New feature or request pr welcome

Comments

@alfaproject
Copy link

Clear and concise description of the problem

I'm trying to migrate our codebase from Jest to Vitest but now I have to update almost all of our test suites because we use function or class names for the describe names like so:

describe(VitestService, () => {
  describe(VitestService.prototype.isBroken, () => {
    // ...
  });
});

But we get type errors with Vitest ):

Suggested solution

Allow for function and class names to be used in describe/it/test/etc names

Alternative

No response

Additional context

No response

Validations

@JoshuaKGoldberg
Copy link
Contributor

Looks like this was fixed by #3497 (hooray! 🥳) - can the issue be closed?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request pr welcome
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants