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

Cannot generate test for export default functions and classes #2501

Open
tyuldashev opened this issue Aug 14, 2023 · 0 comments
Open

Cannot generate test for export default functions and classes #2501

tyuldashev opened this issue Aug 14, 2023 · 0 comments
Labels
comp-ide Issue is related to IDE support ctg-bug Issue is a bug lang-javascript Issue is related to JavaScript support

Comments

@tyuldashev
Copy link
Collaborator

Description
If function or class marked as export default then UTBot doesn't suggest to generate test for such objects.

To Reproduce

  1. Install UnitTestBot plugin built from main in IntelliJ IDEA
  2. Open some JavaScript project
  3. Try to invoke Test Generation dialog for following code:
export default function cube(x) {
  return x * x * x;
}

Expected behavior
Dialog appears.

Actual behavior
When pressing hotkey, nothing happens. File context menu is disabled.

Screenshots, logs

image

@tyuldashev tyuldashev added ctg-bug Issue is a bug lang-javascript Issue is related to JavaScript support comp-ide Issue is related to IDE support labels Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-ide Issue is related to IDE support ctg-bug Issue is a bug lang-javascript Issue is related to JavaScript support
Projects
Status: Todo
Development

No branches or pull requests

1 participant