Helpful Tools
A good developer should consider what tools they can incorporate to assist their work. The right tools, in the hands of the right developer, can yield much. Below are recommended tools you should consider adding to your workflow:
Testing
Wallaby.js
Wallaby.js is a powerful continuous testing tool that runs your unit tests in real-time as you write code. It provides instant visual feedback directly in your editor, showing which lines of code are covered by tests, which tests are passing or failing, and highlighting any errors immediately. A quick feedback loop can lead to higher levels of productivity.
Installation and Setup
- Register your organization email for a free OSS license on Wallaby.js official website
- Ensure Wallaby.js sends a confirmation email to you via your registered email address
- Install the 'Wallaby.js' extension in your IDE
- Activate your OSS license by opening Wallaby.js extension settings -> 'Manage License Key' -> Submit your organization email
- Open the command palette (F1) and run '>Wallaby.js: Smart Start'
- Wallaby.js will now run the unit tests within any unit test file that is opened and focused.
For more information on using Wallaby.js, please read the documentation on their official website.
Common Issues
Wallaby.js fails to verify the open-source state of core
- Try running '>Wallaby.js: Smart Start' again
- (If persisting) uninstall Wallaby.js from your IDE, open Docker Desktop -> click 'app-1' -> 'Files' -> home/node/ -> delete the .wallaby folder, then restart from step 1 again.
Wallaby.js hangs at 'Discovering Testing Framework' after running 'Smart Start'
- Stop Wallaby.js by running '>Wallaby.js: Stop'
- Run '>Wallaby.js: Select Configuration'
- Select 'wallaby.js' from the drop-down of configuration options.
- IMPORTANT: Wallaby.js will attempt to run ALL tests inside the core monorepo. Run '>Wallaby.js: Stop', then run '>Wallaby.js: Smart Start'.
Activating OSS license failed because of expired paid license
- If you own an expired paid license key, either remove it from your account, or contact Wallaby.js support team for assistance in removing it
- When the expired key is removed from your account, proceed through the installation and setup instructions as usual.
For more information about licensing, see Wallaby.js's documentation