Skip to content

Bug: Response not support plain Array #91

@aa900031

Description

@aa900031

Environment

Node version: 20.19.0
npm version: 10.8.2
Mentoss version: 0.9.0

What did you do?

Put an Array to body

server.get('/repos/release-it/release-it-configuration/tarball/main', {
    status: 200,
    body: ['1', 2],
});

What did you expect to happen?

Response body with stringified Array

What actually happened?

The body response stream

Link to Minimal Reproducible Example

https://stackblitz.com/edit/stackblitz-starters-o92hga3y?file=index.js

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions