Skip to content

Commit

Permalink
Define missing global function
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Markopoulos committed Jan 15, 2025
1 parent 1dc31a8 commit d3739c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/api/src/time-series/time-series.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export const timeSeriesTests = () => {
];

beforeAll(async () => {
// Define missing global function in test environment
global.structuredClone = (val) => JSON.parse(JSON.stringify(val));
app = await testService.getApp();
dataSource = await testService.getDataSource();
});
Expand Down

0 comments on commit d3739c1

Please sign in to comment.