Question: How do I check if a component is not present, i.e. that a specific component has not been rendered?

Answer: 
[`.contains`](https://airbnb.io/enzyme/docs/api/ReactWrapper/contains.html) receives a React Node or array of Nodes as an argument. Instead, use [`.find`](https://airbnb.io/enzyme/docs/api/ReactWrapper/find.html):

```
expect(wrapper.find('selector').exists()).toBeTruthy()

```
We use Jest and Enzyme, and I've found the only good test is to import the sub-component and test this way:

```
expect(component.find(SubComponent).length).toEqual(0); // or (1) for exists, obvs

```

I tried all the other answers and none worked reliably.