Skip to main content
0 votes
0 answers
51 views

We have an enterprise Angular application. It was on v13 and I have upgraded it to v19. The Jasmine tests are okay on v13 but it has error on v19. I get the error shown in the screenshot. I cannot ...
AShkANRed's user avatar
-3 votes
0 answers
40 views

I have a project that uses Jasmine on Node.js. I want the generated test reports to include file paths for each test. Steps to reproduce: npm install --save-dev jasmine npx jasmine init npx jasmine ...
Gayan Weerakutti's user avatar
0 votes
1 answer
72 views

Here's the repo. There is a test where I want to use jasmine.clock().autoTick(): fit("show verification field", async () => { jasmine.clock().install(); jasmine.clock()....
AlexB's user avatar
  • 4,684
0 votes
0 answers
22 views

Firefox WebDriver Fails with "Cyclic object value" Error When Using jasmine-browser-runner with Ext.js 3.2.1 Problem Summary jasmine-browser-runner works perfectly with Chrome but fails with ...
Tanishq Bhadouria's user avatar
0 votes
1 answer
54 views

I apologize beforehand for this post, but I am struggling to figure out how to mock data from fetch request without making request itself and then test functions which have this data as dependency in ...
ErrorBoot's user avatar
1 vote
0 answers
61 views

We have a specific set of tests of our Angular application that requires Jasmine to connect/authenticate and call our ASP.NET Core Web API. As we have numerous UI tests setup (so these are not ...
TerrorBight's user avatar
1 vote
0 answers
50 views

dataTeamService = jasmine.createSpyObj('DataTeamService',['setDataGroup'],{ selectValGroup: of({ id : 1, accessData : false }) }); it('shoud remove valData when accessData is false',()=>{ fixture....
Vishnu's user avatar
  • 767
0 votes
1 answer
93 views

I have a component that fetches some information from a NGXS Store, that I need to create unit tests for. The component looks like this: @Component({ standalone: true, selector: 'app-task-...
gizmo's user avatar
  • 131
0 votes
1 answer
49 views

Angular's Compiler has the possibility to detect unused standalone imports with the rule NG8113 Unused Standalone Imports. By default those detections are printed as warning. Is there a way to get ...
kerosene's user avatar
  • 921
2 votes
1 answer
258 views

Having updated an Angular v19 app to Angular v20, the Google Maps API is not being loaded in the Karma unit tests. All the unit tests on components which serve Google Maps fail with the following ...
Winthorpe's user avatar
  • 1,272
0 votes
1 answer
44 views

Trying to unit test, whether a cell is having hyperlink or not. Not able to find the tag a via testHarness api. import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ...
Arnab Mukherjee's user avatar
1 vote
1 answer
75 views

Using MatSelect and working on UTs. Post selecting a option via test harness, not able to see ngModel variable binding working. Here is the html snippet: <mat-form-field class="dropdown-...
Arnab Mukherjee's user avatar
0 votes
1 answer
55 views

In my Angular app I need to be able to unit test that routerLink create the correct href attribute. Sometimes they are links relative to the current route, and sometimes they are absolute links from ...
Chris Barr's user avatar
  • 34.7k
1 vote
1 answer
338 views

I'm testing an Angular 18 standalone component using TestBed and running into this error when the component is initialized during a unit test: Error: NG0203: inject() must be called from an injection ...
Anurag Nema's user avatar
2 votes
2 answers
461 views

I have an output signal in my component like this: updatedBook = output<Book>(); ... updateBook(changedBook: Book){ this.updatedBook.emit(changedBook); } In the template I have a binding ...
Irina S.'s user avatar
  • 255

15 30 50 per page
1
2 3 4 5
893