How to set a tests to fail (false) with the new pm-api

Hi,

Are we able to set a test to fail/false with the new pm-api?
With the old-structure, we were able to write something like, to put a test-response to failed.

tests["Errormessage: " + json.message] = false;

How can i set this test to a failed one, i.e:

pm.test('This test will fail:', () => {
    

});

The pm.expect is an extended assertion API built on chaijs. You can use pm.expect.fail() to set a test to always pass. Check out the official chai documentation - http://chaijs.com/api/bdd/#method_fail.

Thanks!
I came down to use assert.fail();