jest to not contain code example Example: jest expect not contain expect('some string').toEqual(expect.not.stringContaining('something else'))