I'm writing a unit test in Jest.

In the unit under test I am importing

```
import queryString from 'query-string'

```

and it is executing the code:

```
queryString.stringify(ids)

```

where ids is an array in the following format:

```
[{ id: '123' },{ id: '321' }] 

```

This code works perfectly when running in my deployed webpage, but in a JEST test it gives the following output:

```
id=%5Bobject%20Object%5D&id=%5Bobject%20Object%5D

```

whereas the same code in a browser gives:

```
id=123&id=321

```

As per the requisites of the [query-string](https://www.npmjs.com/package/query-string) module, I am using a verison of node > 6. 

I have also added:

```
/* jest commonjs */

```

to the top of my test file as query-string targets node.

Additionally I have tried setting various options in [stringify](https://www.npmjs.com/package/query-string#stringify-object--options-) but to no avail.

Can anyone tell me why I'm getting different results in these different environments and how I can get my test to work? i.e. not render the string as "%5Bobject%20".

Sure, I could implement my own stringify method, but this library is built to do this!