jest expect not contain

JavaScript
expect('some string').toEqual(expect.not.stringContaining('something else'))
Source

Also in JavaScript: