Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support AnalogJS Vitest #679

Closed
talgershman opened this issue Oct 27, 2024 · 3 comments
Closed

Support AnalogJS Vitest #679

talgershman opened this issue Oct 27, 2024 · 3 comments

Comments

@talgershman
Copy link

Description

Hi,

It would be great if i could setup vitest + spectator.

https://analogjs.org/docs/features/testing/vitest

Currently I am getting an error :
ReferenceError: jasmine is not defined
❯ ../../../node_modules/projects/spectator/src/lib/mock.ts:76:58
❯ installProtoMethods ../../../node_modules/projects/spectator/src/lib/mock.ts:54:19
❯ createSpyObject ../../../node_modules/projects/spectator/src/lib/mock.ts:75:3
❯ Object.useFactory ../../../node_modules/projects/spectator/src/lib/mock.ts:95:23
❯ Object.factory ../../../../../packages/core/src/di/r3_injector.ts:608:32
❯ ../../../../../packages/core/src/di/r3_injector.ts:488:35
❯ runInInjectorProfilerContext ../../../../../packages/core/src/render3/debug/injector_profiler.ts:285:5
❯ R3Injector.hydrate ../../../../../packages/core/src/di/r3_injector.ts:487:11
❯ R3Injector.get ../../../../../packages/core/src/di/r3_injector.ts:341:23
❯ R3Injector.get ../../../../../packages/core/src/di/r3_injector.ts:352:27

Proposed solution

add vitest types

Alternatives considered

none

Do you want to create a pull request?

No

@Tommy228
Copy link
Contributor

Would be very interesting now that Nx supports vitest for Angular out of the box nrwl/nx#27311

@JoramM
Copy link

JoramM commented Nov 6, 2024

I would also like to use Angular with Vitest and Spectator. 👍

@NetanelBasal
Copy link
Member

Released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants