+
Skip to content

Errors when running tests on Windows #1860

@st3h3n

Description

@st3h3n

Please provide the environment you discovered this bug in.

Windows 11 24H2

Which area/package is the issue in?

vite-plugin-angular

Description

On Windows generated paths are ./app.component.css|C:/path/to/src/app.component.css rather than ./app.component.css|/path/to/src/app.component.css, causing tests to fail.

Please provide the exception or error you saw

A bunch of these:
FAIL  src/lib/component-resolvers.spec.ts > component-resolvers > component-resolvers templateUrl > matcher > should handle templateUrls with double quotes and route params
      AssertionError: expected false to be true // Object.is equality

      - Expected
      + Received

      - true
      + false

       ❯ src/lib/component-resolvers.spec.ts:283:69
          281|         const resolvedTemplateUrls = templateUrlsResolver.resolve(code…
          282|
          283|         expect(thePathsAreEqual(resolvedTemplateUrls, [actualUrl])).to…
             |                                                                     ^
          284|       });
          285|
       ❯ new ZoneAwarePromise ../../node_modules/.pnpm/zone.js@0.15.0/node_modules/zone.js/fesm2015/zone.js:2702:25

Other information

I already have a PR ready.

I would be willing to submit a PR to fix this issue

  • Yes
  • No

Metadata

Metadata

Assignees

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

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载