lundi 4 juin 2018

How to configure Jest in HTML file for integration tests?

I want to use integration tests that will use an external API. The external library is loaded on the fly by implementing it's URL (like google ads). So, I need to start the tests from the stage, I think. How can I configure them properly? For example, there is a Jasmine integration HTML part that I found

<script type="text/javascript" src="node_modules/jasmine-core/lib/jasmine-core/jasmine.js"></script>
<script type="text/javascript" src="node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"></script>
<script type="text/javascript" src="node_modules/jasmine-core/lib/jasmine-core/boot.js"></script>

But what should I add for Jest testing without mocks?

Aucun commentaire:

Enregistrer un commentaire