build(deps): bump monaco-editor from 0.34.1 to 0.35.0 (#1495)

* build(deps): bump monaco-editor from 0.34.1 to 0.35.0

Bumps [monaco-editor](https://github.com/microsoft/monaco-editor) from 0.34.1 to 0.35.0.
- [Release notes](https://github.com/microsoft/monaco-editor/releases)
- [Changelog](https://github.com/microsoft/monaco-editor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/microsoft/monaco-editor/commits/v0.35.0)

---
updated-dependencies:
- dependency-name: monaco-editor
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* yarn dedupe

* work around jest/monaco-editor performance.mark issue

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Lechner <david@pybricks.com>
This commit is contained in:
dependabot[bot]
2023-02-08 16:06:44 +00:00
committed by GitHub
co-authored by David Lechner
parent ae3233af64
commit 64625bec3a
3 changed files with 24 additions and 464 deletions
+6 -1
View File
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2021-2022 The Pybricks Authors
// Copyright (c) 2021-2023 The Pybricks Authors
import { Classes } from '@blueprintjs/core';
import { cleanup, fireEvent, waitFor } from '@testing-library/react';
@@ -12,6 +12,11 @@ import { defined } from '../utils';
import Editor from './Editor';
import { editorActivateFile, editorCloseFile } from './actions';
// not entirely clear why but this is needed since monaco-editor@0.35.0
// has something to do with @jest/fake-timers replacing window.performance
// https://jestjs.io/docs/timer-mocks#selective-faking
window.performance.mark = jest.fn();
const testFile: FileMetadata = {
uuid: uuid(0),
path: 'test.file',