Skip to content

Unit tests fail on Windows because of path separator #145

@HyperBrain

Description

@HyperBrain

This is a Bug Report

Description

When running npm test on Windows, the unit tests fail like:

      + expected - actual

       {
         "filename": "last"
         "libraryTarget": "commonjs"
      -  "path": "testpath\\.webpack"
      +  "path": "testpath/.webpack"
       }

The failures happen in multiple tests, everywhere where paths are checked against
their expectations.

Proposed solution

The expectations should be composed by using path.sep as path separator to keep the tests platform independent.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions