Skip to content

Commit 8b40840

Browse files
authored
Merge pull request #298 from jpmorganchase/dependabot/npm_and_yarn/js/form-data-4.0.4
Bump form-data from 4.0.0 to 4.0.4 in /js
2 parents dcdef6f + aee8d9b commit 8b40840

File tree

3 files changed

+4338
-4174
lines changed

3 files changed

+4338
-4174
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
matrix:
3131
os: [ubuntu-latest]
3232
python-version: [3.9]
33-
node-version: [18.x]
33+
node-version: [20.x]
3434

3535
steps:
3636
- uses: actions/checkout@v4

js/tests/setup.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* the Apache License 2.0. The full license can be found in the LICENSE file.
77
*
88
*/
9+
910
Object.defineProperty(window, "DragEvent", {
1011
value: class DragEvent {},
1112
});
@@ -23,3 +24,14 @@ Object.defineProperty(window, "matchMedia", {
2324
dispatchEvent: jest.fn(),
2425
})),
2526
});
27+
28+
29+
class MockTool {
30+
constructor() {}
31+
}
32+
33+
jest.mock("@jupyterlab/notebook", () => ({
34+
INotebookTracker: "notebook-tracker",
35+
NotebookTools: { Tool: MockTool },
36+
}));
37+

0 commit comments

Comments
 (0)