Skip to main content
Filter by
Sorted by
Tagged with
Advice
1 vote
1 replies
285 views

I am a bit confused with the Angular testing landscape. I have seen that Vitest will become the new default, replacing Karma. The question I then have is what about Jasmine. Does Vitest replace only ...
Maarten's user avatar
  • 11
2 votes
1 answer
49 views

Can anybody help me to figure this out please ? Im trying to test a number value in my dom. It is the result of complex calculation. It is formatted in french locale, cause application is french. Used ...
leducBigood's user avatar
0 votes
1 answer
52 views

I'm not able to set up my testing-library integration tests so they recognize the global interface with the third party static methods from my component library Preline UI I'm using JSDOM and angular-...
Florestan Korp's user avatar
0 votes
1 answer
104 views

We use the testing library and MockBuilder from ng-mocks to write unit tests for angular components: ... <ng-container *ngTemplateOutlet="previewContent" /> ... <!-- Preview ...
Peter T.'s user avatar
  • 3,407
0 votes
1 answer
95 views

I am using Angular 18 with Angular testing library: my issues is that I am able access route param as required input signal. However when I run the tests that depends on this input it's complaining ...
Eternal Sunshine's user avatar
0 votes
1 answer
234 views

I am working with Angular Query with Angular v19 and signals. I was able to implement good solution to work with QueryOptions and injectQuery in the app. How ever it's quite challenging to work with ...
Eternal Sunshine's user avatar
0 votes
1 answer
659 views

I am using ng test to run my unit tests. I have a scenario where I need to test mutliple spec files which are in different paths. I am able to do this using angular.json "test": { ... "...
Naveen kumar S's user avatar
-1 votes
1 answer
694 views

First of all, I looked at another question, BDD framework for the frontend. The question has gone on entirely different direction. BDD is not about Cucumber or Plain english tests names. (Jasmine/...
Code Name Jack's user avatar
0 votes
1 answer
1k views

I have a few angular components that I want to test and make sure that they are working. The idea of the component in it's simplest form is to list datapoints. Each of these datapoints should be ...
munHunger's user avatar
  • 3,115
0 votes
1 answer
456 views

I am coding with Angular and am attempting to write a test for the below function. We are not using the built in test and are using Jest with the angular-testing-library. When I run the test, I am not ...
balaso's user avatar
  • 31
5 votes
1 answer
2k views

After configuring Jest with Angular 14, I'm getting this error: Test suite failed to run TypeError: typescript_1.default.canHaveDecorators is not a function at TypeScriptReflectionHost....
StefanP's user avatar
  • 925
0 votes
1 answer
180 views

I have a problem. I have a function that use a async await to get data, but in the moment that I try test it. I don't know how to do that. I tried this this is my component async loadTodos() { try ...
Ricardo Tovar's user avatar
0 votes
1 answer
81 views

I have a service like export class TestService { public props: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false); props$ = this.props.asObservable(); test(){ } } ...
Ricardo Tovar's user avatar
2 votes
1 answer
749 views

I am developing an application with Ionic Angular. While I am testing with @testing-library/angular, the test is not working for ion-button but works for normal button field. What could be the problem?...
Faiz Ahmed's user avatar
1 vote
1 answer
102 views

When running the tests on my project when trying to render the component, the tests fail with the following error: TypeError: testing.TestBed.inject is not a function This is the test component: ...
Felipe Ignacio Moyano carreño's user avatar

15 30 50 per page