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


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 to set a test to always pass. Check out the official chai documentation -

I came down to use;