Skip to content

Add Tern auto-installation for JavaScript #1781

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

Merged
merged 2 commits into from
Feb 10, 2023

Conversation

rudolf101
Copy link
Member

Description

The required Tern package is installed automatically if it was not found in the user's project.

  • The presence of an already installed package in the user's project is taken into account.

Fixes #1780

How to test

Manual tests

Various scenarios have been tested, in the absence of the necessary package in the user directory. You can find the examples in the folder `/utbot-js/samples' and try to run UTBot with the Tern package installed or missing.

Self-check list

  • I've set the proper labels for my PR (at least, for category and component).
  • PR title and description are clear and intelligible.
  • I've added enough comments to my code, particularly in hard-to-understand areas.
  • The functionality I've repaired, changed or added is covered with automated tests.
  • Manual tests have been provided optionally.
  • The documentation for the functionality I've been working on is up-to-date.

@rudolf101 rudolf101 added comp-ui Improvements of plugin UI appearence and functionality lang-javascript Issue is related to JavaScript support ctg-bug-fix PR is fixing a bug labels Feb 9, 2023
@rudolf101 rudolf101 requested a review from Markoutte February 9, 2023 13:59
@rudolf101 rudolf101 self-assigned this Feb 9, 2023
@rudolf101 rudolf101 merged commit a5c0df4 into main Feb 10, 2023
@rudolf101 rudolf101 deleted the vladislav/js-tern-auto-install branch February 10, 2023 13:33
@alisevych alisevych added this to the 2023.03 Release milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-ui Improvements of plugin UI appearence and functionality ctg-bug-fix PR is fixing a bug lang-javascript Issue is related to JavaScript support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installation of the Tern npm package for JS is executed every time the plugin is launched
3 participants