Describe the bug
The Step class uses JSON.stringify without the callback function to handle circular structures. When passing an object with a circular structure it shows the error "TypeError: Converting circular structure to JSON" and interrupts code execution.
To Reproduce
Steps to reproduce the behavior:
Create a usecase and use the step method on it.
Create an object with a circular structure, for example by creating a spreadsheet with exceljs.
Try passing the created spreadsheet from one step to another inside usecase
See the error
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Worksheet'
| property '_rows' -> object with constructor 'Array'
| index 0 -> object with constructor 'Row'
--- property '_worksheet' closes the circle
Expected behavior
The Setp class should perform the packaging of objects with circular structures.
The issue was fixed and is placed in the last buchu's version. If you prefer, you can see the adjustment pull request here: https://github.com/herbsjs/buchu/pull/47.
Describe the bug The Step class uses JSON.stringify without the callback function to handle circular structures. When passing an object with a circular structure it shows the error "TypeError: Converting circular structure to JSON" and interrupts code execution.
To Reproduce Steps to reproduce the behavior:
Expected behavior The Setp class should perform the packaging of objects with circular structures.
Screenshots Object with circular reference
The output error
Additional context n/a