Check if a string contains ‘abc’ or ‘cde’ with jest April 15, 2023 by Tarik You can use a regexp with toMatch like : expect(str).toMatch(/(abc|cde)/i)