expect(...).toMatchSnapShot is not a function code example Example: TypeError: expect(...).toMatchSnapShot is not a function expect(ele.document()).toMatchSnapshot()