Search code examples
assertionsweb-api-testingfrisby.js

Assertions and failures appears with 0


I'm exploring the Frisby tool

I am trying out a simple test (below) and when the test fails the failures count is 0

var frisby = require('frisby');

describe ('Endpoints page', function (){
    it('1- Endpoint main board', function() {
        return frisby.get('https://SDF.DSF')
            .expect('status', 200);
         
    });
    it('2- verify random endpoints working properly', function() {
        return frisby.get('https://DF.DSF')
            .expect('status', 100);
    });
});

Screen Grab


Solution

  • Solved by executing the code using jest not jasmine command