Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"test-coverage": "run-s test-build-coverage test-serve-coverage",
"test-alex": "alex ./docs-* *.md",
"test-lockfile": "lockfile-lint --path yarn.lock --allowed-hosts yarn --validate-https",
"test-debug": "node --inspect-brk node_modules/.bin/jest --runInBand"
"test-debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
"postinstall": "patch-package"
},
"license": "MPL-2.0",
"repository": {
Expand Down Expand Up @@ -123,7 +124,7 @@
"@testing-library/react": "^16.3.0",
"alex": "^11.0.1",
"autoprefixer": "^10.4.21",
"babel-jest": "^29.7.0",
"babel-jest": "^30.0.0",
"babel-loader": "^10.0.0",
"babel-plugin-module-resolver": "^5.0.2",
"browserslist": "^4.25.0",
Expand Down Expand Up @@ -152,17 +153,19 @@
"glob": "^11.0.3",
"html-webpack-plugin": "^5.6.3",
"husky": "^4.3.8",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest": "^30.0.0",
"jest-environment-jsdom": "^30.0.0",
"jest-extended": "^6.0.0",
"json-loader": "^0.5.7",
"local-web-server": "^5.4.0",
"lockfile-lint": "^4.14.1",
"mkdirp": "^3.0.1",
"npm-run-all2": "^8.0.4",
"open": "^10.1.2",
"patch-package": "^8.0.0",
"postcss": "^8.5.4",
"postcss-loader": "^8.1.1",
"postinstall-postinstall": "^2.1.0",
"prettier": "^3.5.3",
"raw-loader": "^4.0.2",
"rimraf": "^5.0.10",
Expand Down
13 changes: 13 additions & 0 deletions patches/jsdom+26.1.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/jsdom/lib/jsdom/browser/Window.js b/node_modules/jsdom/lib/jsdom/browser/Window.js
index 52d011c..5b29f5a 100644
--- a/node_modules/jsdom/lib/jsdom/browser/Window.js
+++ b/node_modules/jsdom/lib/jsdom/browser/Window.js
@@ -507,7 +507,7 @@ function installOwnProperties(window, options) {
// [LegacyUnforgeable]:
window: { configurable: false },
document: { configurable: false },
- location: { configurable: false },
+ location: { configurable: true },
top: { configurable: false }
});

4 changes: 2 additions & 2 deletions src/test/components/NetworkChart.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ describe('NetworkChartRowBar phase calculations', function () {
const barStyles = getBarElementStyles();
expect(barStyles).toHaveLength(2);
expect(barStyles).toEqual([
'width: 40px; left: -18870px;',
'left: -18870px; width: 40px;',
'width: 198px; left: 150px;',
]);
});
Expand Down Expand Up @@ -485,7 +485,7 @@ describe('NetworkChartRowBar phase calculations', function () {
const barStyles = getBarElementStyles();
expect(barStyles).toHaveLength(2);
expect(barStyles).toEqual([
'width: 40px; left: -18870px;',
'left: -18870px; width: 40px;',
'width: 198px; left: 150px;',
]);
});
Expand Down
34 changes: 17 additions & 17 deletions src/test/components/__snapshots__/CallTreeSidebar.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`CallTreeSidebar can expand subcategories 1`] = `
<aside
Expand Down Expand Up @@ -125,7 +125,7 @@ exports[`CallTreeSidebar can expand subcategories 1`] = `
>
<div
class="sidebar-histogram-bar-color category-color-purple"
style="width: 100.0000%;"
style="width: 100%;"
/>
</div>
<h4
Expand Down Expand Up @@ -168,7 +168,7 @@ exports[`CallTreeSidebar can expand subcategories 1`] = `
>
<div
class="sidebar-histogram-bar-color category-color-purple"
style="width: 100.0000%;"
style="width: 100%;"
/>
</div>
</div>
Expand Down Expand Up @@ -300,7 +300,7 @@ exports[`CallTreeSidebar can expand subcategories 2`] = `
>
<div
class="sidebar-histogram-bar-color category-color-purple"
style="width: 100.0000%;"
style="width: 100%;"
/>
</div>
<div
Expand Down Expand Up @@ -373,7 +373,7 @@ exports[`CallTreeSidebar can expand subcategories 2`] = `
>
<div
class="sidebar-histogram-bar-color category-color-purple"
style="width: 100.0000%;"
style="width: 100%;"
/>
</div>
</div>
Expand Down Expand Up @@ -485,7 +485,7 @@ exports[`CallTreeSidebar matches the snapshots when displaying bytes data 2`] =
>
<div
class="sidebar-histogram-bar-color category-color-yellow"
style="width: 100.0000%;"
style="width: 100%;"
/>
</div>
</div>
Expand Down Expand Up @@ -623,7 +623,7 @@ exports[`CallTreeSidebar matches the snapshots when displaying data about the cu
>
<div
class="sidebar-histogram-bar-color category-color-yellow"
style="width: 100.0000%;"
style="width: 100%;"
/>
</div>
</div>
Expand Down Expand Up @@ -749,7 +749,7 @@ exports[`CallTreeSidebar matches the snapshots when displaying data about the cu
>
<div
class="sidebar-histogram-bar-color category-color-yellow"
style="width: 100.0000%;"
style="width: 100%;"
/>
</div>
</div>
Expand Down Expand Up @@ -875,7 +875,7 @@ exports[`CallTreeSidebar matches the snapshots when displaying data about the cu
>
<div
class="sidebar-histogram-bar-color category-color-transparent"
style="width: 50.0000%;"
style="width: 50%;"
/>
</div>
<div
Expand All @@ -898,7 +898,7 @@ exports[`CallTreeSidebar matches the snapshots when displaying data about the cu
>
<div
class="sidebar-histogram-bar-color category-color-purple"
style="width: 50.0000%;"
style="width: 50%;"
/>
</div>
<h4
Expand Down Expand Up @@ -935,7 +935,7 @@ exports[`CallTreeSidebar matches the snapshots when displaying data about the cu
>
<div
class="sidebar-histogram-bar-color category-color-purple"
style="width: 100.0000%;"
style="width: 100%;"
/>
</div>
</div>
Expand Down Expand Up @@ -1061,7 +1061,7 @@ exports[`CallTreeSidebar matches the snapshots when displaying data about the cu
>
<div
class="sidebar-histogram-bar-color category-color-yellow"
style="width: 100.0000%;"
style="width: 100%;"
/>
</div>
<h4
Expand Down Expand Up @@ -1098,7 +1098,7 @@ exports[`CallTreeSidebar matches the snapshots when displaying data about the cu
>
<div
class="sidebar-histogram-bar-color category-color-yellow"
style="width: 100.0000%;"
style="width: 100%;"
/>
</div>
</div>
Expand Down Expand Up @@ -1236,7 +1236,7 @@ exports[`CallTreeSidebar matches the snapshots when displaying data about the cu
>
<div
class="sidebar-histogram-bar-color category-color-yellow"
style="width: 100.0000%;"
style="width: 100%;"
/>
</div>
</div>
Expand Down Expand Up @@ -1362,7 +1362,7 @@ exports[`CallTreeSidebar matches the snapshots when displaying data about the cu
>
<div
class="sidebar-histogram-bar-color category-color-purple"
style="width: 100.0000%;"
style="width: 100%;"
/>
</div>
</div>
Expand Down Expand Up @@ -1488,7 +1488,7 @@ exports[`CallTreeSidebar matches the snapshots when displaying data about the cu
>
<div
class="sidebar-histogram-bar-color category-color-transparent"
style="width: 100.0000%;"
style="width: 100%;"
/>
</div>
</div>
Expand Down Expand Up @@ -1614,7 +1614,7 @@ exports[`CallTreeSidebar matches the snapshots when displaying data about the cu
>
<div
class="sidebar-histogram-bar-color category-color-purple"
style="width: 100.0000%;"
style="width: 100%;"
/>
</div>
</div>
Expand Down
20 changes: 10 additions & 10 deletions src/test/components/__snapshots__/FlameGraph.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`FlameGraph EmptyReasons matches the snapshot when a profile has no samples 1`] = `
<div
Expand Down Expand Up @@ -120,7 +120,7 @@ exports[`FlameGraph has a tooltip that matches the snapshot with categories 1`]
>
<div
class="tooltipCallNodeGraphMeterBar"
style="width: 100%;"
style="width: 100%; background: var(--blue-40);"
/>
</div>
<div
Expand Down Expand Up @@ -160,7 +160,7 @@ exports[`FlameGraph has a tooltip that matches the snapshot with categories 1`]
>
<div
class="tooltipCallNodeGraphMeterBar"
style="width: 33.33333333333333%;"
style="width: 33.33333333333333%; background: var(--category-color-lightblue);"
/>
</div>
<div
Expand Down Expand Up @@ -200,7 +200,7 @@ exports[`FlameGraph has a tooltip that matches the snapshot with categories 1`]
>
<div
class="tooltipCallNodeGraphMeterBar"
style="width: 66.66666666666666%;"
style="width: 66.66666666666666%; background: var(--category-color-green);"
/>
</div>
<div
Expand Down Expand Up @@ -331,7 +331,7 @@ exports[`FlameGraph has a tooltip that matches the snapshot with categories when
>
<div
class="tooltipCallNodeGraphMeterBar"
style="width: 100%;"
style="width: 100%; background: var(--blue-40);"
/>
</div>
<div
Expand Down Expand Up @@ -371,7 +371,7 @@ exports[`FlameGraph has a tooltip that matches the snapshot with categories when
>
<div
class="tooltipCallNodeGraphMeterBar"
style="width: 100%;"
style="width: 100%; background: var(--category-color-lightblue);"
/>
</div>
<div
Expand Down Expand Up @@ -933,7 +933,7 @@ exports[`FlameGraph shows a tooltip with the resource information with categorie
>
<div
class="tooltipCallNodeGraphMeterBar"
style="width: 100%;"
style="width: 100%; background: var(--blue-40);"
/>
</div>
<div
Expand All @@ -946,7 +946,7 @@ exports[`FlameGraph shows a tooltip with the resource information with categorie
>
<div
class="tooltipCallNodeGraphMeterBar"
style="width: 100%;"
style="width: 100%; background: var(--blue-40);"
/>
</div>
</div>
Expand Down Expand Up @@ -978,7 +978,7 @@ exports[`FlameGraph shows a tooltip with the resource information with categorie
>
<div
class="tooltipCallNodeGraphMeterBar"
style="width: 100%;"
style="width: 100%; background: var(--category-color-green);"
/>
</div>
<div
Expand All @@ -991,7 +991,7 @@ exports[`FlameGraph shows a tooltip with the resource information with categorie
>
<div
class="tooltipCallNodeGraphMeterBar"
style="width: 100%;"
style="width: 100%; background: var(--category-color-green);"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`SampleTooltipContents renders the CPU usage only when outside of the activity graph is hovered 1`] = `
<div
Expand Down
14 changes: 7 additions & 7 deletions src/test/components/__snapshots__/TooltipMarker.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`TooltipMarker renders profiled off-main thread FileIO markers properly 1`] = `
<div
Expand Down Expand Up @@ -414,7 +414,7 @@ exports[`TooltipMarker renders properly network markers where content type is bl
<div
aria-hidden="true"
class="tooltipNetworkPhase tooltipNetworkPhaseEmpty"
style="margin-left: 83.7404047452896%;"
style="margin-left: 83.7404047452896%; margin-right: 7.105427357601002e-15%;"
/>
</div>
</div>
Expand Down Expand Up @@ -600,7 +600,7 @@ exports[`TooltipMarker renders properly network markers where content type is mi
<div
aria-hidden="true"
class="tooltipNetworkPhase tooltipNetworkPhaseEmpty"
style="margin-left: 83.7404047452896%;"
style="margin-left: 83.7404047452896%; margin-right: 7.105427357601002e-15%;"
/>
</div>
</div>
Expand Down Expand Up @@ -791,7 +791,7 @@ exports[`TooltipMarker renders properly network markers with a preconnect part 2
<div
aria-hidden="true"
class="tooltipNetworkPhase"
style="margin-left: 95.9090909090909%; opacity: 0.5;"
style="margin-left: 95.9090909090909%; margin-right: 2.6645352591003757e-15%; opacity: 0.5;"
/>
<h3
class="tooltipNetworkTitle3"
Expand Down Expand Up @@ -860,7 +860,7 @@ exports[`TooltipMarker renders properly network markers with a preconnect part 2
<div
aria-hidden="true"
class="tooltipNetworkPhase tooltipNetworkPhaseEmpty"
style="margin-left: 83.7404047452896%;"
style="margin-left: 83.7404047452896%; margin-right: 7.105427357601002e-15%;"
/>
</div>
</div>
Expand Down Expand Up @@ -1056,7 +1056,7 @@ exports[`TooltipMarker renders properly network markers with a preconnect part c
<div
aria-hidden="true"
class="tooltipNetworkPhase tooltipNetworkPhaseEmpty"
style="margin-left: 83.7404047452896%;"
style="margin-left: 83.7404047452896%; margin-right: 7.105427357601002e-15%;"
/>
</div>
</div>
Expand Down Expand Up @@ -1310,7 +1310,7 @@ exports[`TooltipMarker renders properly normal network markers 1`] = `
<div
aria-hidden="true"
class="tooltipNetworkPhase tooltipNetworkPhaseEmpty"
style="margin-left: 83.69368112707495%;"
style="margin-left: 83.69368112707495%; margin-right: -3.552713678800501e-15%;"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`TrackBandwidth draws a dot that matches the snapshot 1`] = `
<div
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`TrackCustomMarker draws a dot that matches the snapshot 1`] = `
<div
Expand Down
2 changes: 1 addition & 1 deletion src/test/components/__snapshots__/TrackMemory.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`TrackMemory draws a dot that matches the snapshot 1`] = `
<div
Expand Down
Loading