python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Cannot spyOn on a primitive value; undefined given - Testing a function execution in onChange in connected component
New to testing and This is a connected component using redux. I am testing if the maskPromoCode function is called. With the current test code, the error says: Cannot spyOn on a primitive value; undef...
DollyBeeBee
Votes: 0
Answers: 1
BabylonJS - Suppress engine start logs
I'm running some tests using Babylonjs and the following message gets printed to the console for each test:
#null engine:
BJS - [09:12:32]: Babylon.js v4.2.1 - Null engine
#thin engine:
Babylon.js v4...

chantey
Votes: 0
Answers: 1
getByTestID not working for custom component
Working on writing a unit test for a large component. I've written one before for a smaller component, but this has several other custom components nested inside. I'm trying to select it so I can then...
Slashy
Votes: 0
Answers: 1
How can I mock django model object?
For example, I have a lot of interrelated tables in my project
class A(models.Model):
name = models.models.CharField(max_length=16)
class B(models.Model):
name = models.models.CharField(max_l...
jeldzinski
Votes: 0
Answers: 3