/cli-e2e

CLI Integration testing helper

Primary LanguageTypeScriptMIT LicenseMIT

cli-e2e

NPM

Node.js CI Responsible Disclosure Policy SR Commitizen friendly BCH compliance codecov Known Vulnerabilities

Install

npm i -D cli-e2e

Example

const cliPath = path.join(__dirname, 'cli.js');
const cliProcess = cmd.create(cliPath, '.');

test('should return "Hello"', async () => {
  const response = await cliProcess.execute(['Hello']);
  expect(response).toEqual('Hello');
});

For more documentation, please check ./doc/index.html.

Contributing

Please consult CONTRIBUTING for guidelines on contributing to this project.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Maximilian Berkmann

💻 🚇 📖 🚧 🤔

Andrés Zorro

🤔 💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Special thanks to @zorrodg for making the original JS code