TypeError: JSON.stringify cannot serialize cyclic structures.

While running the Juju GUI test suite, if you run into the above error from phantomjs look through your commits for console logs which are attempting to dump complex objects or instances which might contain references to itself.

An common use case could be a log of a Y.Node instance hanging around ie) console.log(Y.one(‘.foo’));