Skip to content

Conversation

kala-moz
Copy link
Contributor

@kala-moz kala-moz commented Mar 21, 2025

Tests will fail.

@kala-moz kala-moz requested a review from julienw March 21, 2025 03:42
@netlify
Copy link

netlify bot commented Mar 21, 2025

Deploy Preview for firefox-performance-dashboard ready!

Name Link
🔨 Latest commit 8084ee1
🔍 Latest deploy log https://app.netlify.com/sites/firefox-performance-dashboard/deploys/67dce029c189ae00083507de
😎 Deploy Preview https://deploy-preview-550--firefox-performance-dashboard.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

"babel-loader": "^9.2.1",
"babel-preset-jest": "^29.6.3",
"codecov": "3.7.2",
"cross-fetch": "^4.1.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW in the profiler server, we were using node-fetch, this was working fine.
But we could remove it after the upgrade to node v22 which supports fetch natively by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, node-fetch isn't working some other dependencies apparently. It's a mess.

const fetchPromise = fetch(url);
try {
// Fetch and store the response in cache
const fetchPromise = fetch(url).then((res) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you want to use await, you might as well use it here as well :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right!

],
},
transformIgnorePatterns: [
'/node_modules/(?!(taskcluster-client-web|data-uri-to-buffer|fetch-blob|formdata-polyfill|cross-fetch)/)',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC these ones were used in perfcompare especially because of the taskcluster client, it may not be needed here (or maybe not for all these entries?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I was a bit tired when I did this so thanks for catching this. Some cleanup is definitely needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants