Skip to content

Comments

Enable VSCode Intellisense on Unit Tests Files and Use NVM versions of Node.js in Husky Pre-commit#1479

Open
SimeonAT wants to merge 4 commits intomusic-assistant:mainfrom
SimeonAT:testing-environment
Open

Enable VSCode Intellisense on Unit Tests Files and Use NVM versions of Node.js in Husky Pre-commit#1479
SimeonAT wants to merge 4 commits intomusic-assistant:mainfrom
SimeonAT:testing-environment

Conversation

@SimeonAT
Copy link
Contributor

@SimeonAT SimeonAT commented Feb 23, 2026

This pull request makes two small modifications to the front-end unit testing setup:

  1. The include in tsconfig.json is changed so that VSCode Intellisense and syntax highlighting are enabled when viewing all unit test files in test/*.

  2. Husky pre-commit is modified to use NVM versions of Node.js and npm if they are found. If NVM is used, the Node.js and npm versions used by NVM is printed to the console:
    image

    I have Yarn, along with all Music Assistant front-end dependencies, installed on my NVM versions of Node.js and npm. As a result, I initially had some trouble running the Husky pre-commit script as my PATH versions of Node.js were outdated. I believe that this fix could be helpful for contributors who use NVM to manage their Node.js versions.

… and syntax highlighting to be enabled on all unit test files in the 'test' directory.
…sions of Node.js. If not, use version of Node.js defined in PATH.
…t using NVM, keep everything the same as before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant