Any other ways to obtain the values of svg’s bounding-rect

I have SVG elements that must be processed inside a JSDOM and need to obtain their getBBox() value.

while using getBBox() , as there is not painting performed inside a JSDOM the values are not obtained.

As I have many svgs in files and am in need of a method that finds the x, y , min ,max coordinates as like getBBox() and return those values. I have also tried methods like getBoundingClientRect()

https://github.com/jsdom/jsdom/issues/2647
If getBBox() can’t be used inside a JSDOM , is there any alternative approach for the same.