I am looking for the best way to match the following:
expect([ { C1: \'xxx\', C0: \'this causes it not to match.\' } ]).to.deep.incl
simply use a map to filter the key you want to check
something like:
const array = [ { C1: 'xxx', C0: 'this causes it not to match.' } ]; expect(array.map(e=>e.C1)).to.include("xxx");
https://www.chaijs.com/api/bdd/