+
Skip to content

Sourcemaps mismatch when adding @analogjs/vitest-angular as test-runner in Angular application #1147

Closed
@JulienMichelFr

Description

@JulienMichelFr

Please provide the environment you discovered this bug in.

The issue is reproduced in this Stackblitz

Which area/package is the issue in?

vitest-angular

Description

When adding @analogjs/vitest-angular in an Angular app, sourcemaps doesn't match when there is an issue in test or when using integrated debugger in IDE (I tried both VSCode and Webstorm)

I've found the following issue which seems to be linked but I'm not really sure

Please provide the exception or error you saw

Test error stacktrace from provided Stackblitz: 

 ❯ src/app/data/data.service.spec.ts:13:36
     11|   });
     12| 
     13|   it('should be created', () => {
       |                                    ^
     14|     expect(service).toBeTruthy();
     15|   });

While it should be:

 ❯ src/app/data/data.service.spec.ts:13:36
     11|   });
     12| 
     13|   it('should be created', () => {
     14|     expect(service).toBeTruthy();
       |                    ^
     15|   });

Other information

No response

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

  • Yes
  • No

Metadata

Metadata

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浏览器服务,不要输入任何密码和下载