function toMatchCodeFrameSnapshot(received) {
  return toMatchSnapshot.call(
    this,
    trimANSICodes(received),
    'toMatchCodeFrameSnapshot',
  );
}
Matches a text that contains ANSI control codes (e.g. [39m[31m[1m^) against a snapshot.
Usage: Call expect.extend({toMatchCodeFrameSnapshot}) to add the matcher in your test