The project is missing unit test, commands and the related modules or logic should be tested to avoid deployment of assets to test the CLI.
Solution
Usually, unit tests are very common in NodeJS projects, to implement unit testing in this project we can use the following -
Mocha: Mocha is an old and widely used testing framework for node applications. It supports asynchronous operations like callbacks, promises, and async/await. It is a highly extensible and customizable framework that supports different assertions and mocking libraries.
https://mochajs.org/
Chai: Chai is an assertion library that is often used alongside Mocha. It can be used as a TTD (Test Driven Development) / BDD (Behavior Driven Development) assertion library for Node.js that can be paired up with any testing framework based on JavaScript. Similar to assert.equal() statement, we can use Chai to write tests like English sentences.
https://www.chaijs.com/
[x] Implement unit tests for single file deployment
Problem to solve
The project is missing unit test, commands and the related modules or logic should be tested to avoid deployment of assets to test the CLI.
Solution
Usually, unit tests are very common in NodeJS projects, to implement unit testing in this project we can use the following -
Mocha: Mocha is an old and widely used testing framework for node applications. It supports asynchronous operations like callbacks, promises, and async/await. It is a highly extensible and customizable framework that supports different assertions and mocking libraries. https://mochajs.org/
Chai: Chai is an assertion library that is often used alongside Mocha. It can be used as a TTD (Test Driven Development) / BDD (Behavior Driven Development) assertion library for Node.js that can be paired up with any testing framework based on JavaScript. Similar to assert.equal() statement, we can use Chai to write tests like English sentences. https://www.chaijs.com/