keploy / keploy/keploy

[bug]: TypeError [ERR_INVALID_ARG_TYPE] in node application

Open
#2,129 4 comments 0 reactions 0 assignees View on GitHub
bug HACKTOBERFEST2024 keploy
Dominant language
Go
Stars
18.5k
Forks
2.4k
Avg merge
1d 4h
Merged PRs (30d)
101

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current behavior

* While running my node 20 application I face the error of
```
TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('128SIGINT')
at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
at ChildProcess. (/usr/lib/node_modules/nyc/node_modules/foreground-child/index.js:63:22)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
code: 'ERR_INVALID_ARG_TYPE'
}
```

### Steps to reproduce

* This is a ```foreground-child``` lib issue which is a part of NYC.
* https://github.com/npm/cli/issues/6766 is the issue in npm cli/
* Use `--skip-coverage=true` to avoid this issue.

### Environment

None

### Version

Cloud

### Repository

keploy

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Node 20 failure in the coverage path and compare it with the linked npm CLI issue. Inspect the foreground-child stack shown in the report and verify that the chosen change prevents the ERR_INVALID_ARG_TYPE failure without requiring --skip-coverage=true.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.