python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Testing Angular Output without spying on the component instance
Let's suppose I have the following component:
@Component({
selector: 'app-dumb',
template: '<button (click)="increment()">Increment</button>'
})
export class DumbComponen...
th3n3rd
Votes: 0
Answers: 1
Assigning variable with getByText not works as expected
Here is my testing code with testing-library with angular. Here I am using title variable for regexp.
import { render, screen } from '@testing-library/angular';
import '@testing-library/jest-dom';
imp...
3gwebtrain
Votes: 0
Answers: 1
How to test a service subcription to a subject from another service
I have the following services:
@Injectable({
providedIn: 'root'
})
export class Service1 {
dataHasChanged = new Subject();
private data1;
private data2;
constructor() {}
getData() {
...
asotos
Votes: 0
Answers: 1
Input type of date is not working on testing library Angular , throwing error of not found label
im trying to do this test oover an input of type date in angular using Testing Library. But keep receiving this error:
TestingLibraryElementError: Unable to find a label with the text of: date-input...
Enrique GF
Votes: 0
Answers: 0