Skip to content

Fix unit tests on Windows #604

@EhabY

Description

@EhabY

It seems that some unit tests fail on Windows due to a few reasons:

  1. The path separator is \ instead of /, this applies to a lot of tests that might use path.normalize or path.join
  2. The escaping of environment variables uses ' instead of "
  3. Some tests in headers.test.ts for some reason (executes a bash script perhaps?)
  4. cliManager.test.ts: validates downloaded binary version seems to be flakey on Windows, might have to do with the mock stream not flushing the content fully (expects mock-binary-v1.2.3 but actual is mock-bin and sometimes mock-binary-v1.2) - Fixed in 4d93456

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions