How to test class constructor in Jest

Posted by Editorial Staff | Updated on

Just create an instance of the object and check it directly. Since it sets them on this, they are essentially public values:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers