Skip to content

test:unit Script Fails on Windows Due to NODE_OPTIONS Syntax #1346

@rishyym0927

Description

@rishyym0927

Describe the bug
The test:unit script in the package.json file fails to execute on Windows due to the Unix-style syntax used for setting the NODE_OPTIONS environment variable. The error message is as follows:

This issue occurs because Windows does not support the Unix-style syntax for setting environment variables (NODE_OPTIONS='...'). Instead, it requires a different syntax (set NODE_OPTIONS=...).

To Reproduce

Clone the repository on a Windows machine.
Run pnpm install to install dependencies.
Execute the test:unit script using the following command:

Expected behavior
The test:unit script should execute successfully on all platforms, including Windows.

Are you going to work on fixing this?

  • Yes
  • No

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions