arya2004 / arya2004/auto-express

Add Unit Tests for CLI Argument Parsing

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
good first issue hacktoberfest hacktoberfest-accepted javascript typescript
Dominant language
TypeScript
Stars
6
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Set up unit tests (with [Jest](https://jestjs.io/) or similar) to verify that CLI arguments are parsed correctly.

**How to do it:**

* Add Jest to dev dependencies:

```bash
npm install --save-dev jest
```
* Create `src/cli.test.js` and write tests for your argument parsing logic.

Contributor guide

Open the contributing guide

Research direction

Start by locating the CLI argument-parsing logic that `src/cli.test.js` should cover, then review the Jest setup and dev-dependency configuration. The work is done when Jest is available and `src/cli.test.js` verifies that CLI arguments are parsed correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, node.js, typescript
Domain
cli, testing
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.