Fail a test with Chai.js December 7, 2023 by Tarik There’s assert.fail(). You can use it like this: assert.fail(0, 1, 'Exception not thrown');