Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,362,638
Community Members
 
Community Events
168
Community Groups

Pipeline tests fail "Converting circular structure to JSON"

My pipeline is like below.

image: node:10.15.3

pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- npm install
- npm test
services:
- postgres
definitions:
services:
postgres:
image: postgres:11.4
variables:
POSTGRES_USER:<user>
POSTGRES_PASSWORD: <password>
POSTGRES_DB: <db>

 

when i locally .execute test suite it works fine. But when tries to execute with pipeline it fails with above exception. 

 

1) "before all" hook in "{root}" 0 passing (170ms) 1 failing 1) "before all" hook in "{root}": TypeError: Converting circular structure to JSON at JSON.stringify (<anonymous>) at tryCatcher (node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (node_modules/bluebird/js/release/promise.js:512:31) at Promise._settlePromise (node_modules/bluebird/js/release/promise.js:569:18) at Promise._settlePromise0 (node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (node_modules/bluebird/js/release/promise.js:693:18) at Async._drainQueue (node_modules/bluebird/js/release/async.js:133:16) at Async._drainQueues (node_modules/bluebird/js/release/async.js:143:10) at Immediate.Async.drainQueues [as _onImmediate] (node_modules/bluebird/js/release/async.js:17:14)npm ERR! Test failed. See above for more details.

0 comments

Comment

Log in or Sign up to comment
TAGS

Atlassian Community Events