Skip to content

Commit

Permalink
Merge pull request #3555 from onflow/bastian/fix-cadence-parser-npm-p…
Browse files Browse the repository at this point in the history
…ackage

Fix cadence-parser npm package
  • Loading branch information
turbolent authored Sep 12, 2024
2 parents 83742cc + c9ae471 commit 57b2df8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions npm-packages/cadence-parser/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions npm-packages/cadence-parser/tests/setup.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
Object.defineProperty(global, 'performance', {
writable: true,
});

Object.defineProperty(global, 'fetch', {
writable: true,
});

global.performance = require("perf_hooks").performance;
global.fetch = require("node-fetch");

0 comments on commit 57b2df8

Please sign in to comment.