Skip to content

fix(site): Load monaco locally #7092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 14, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Mock monaco-editor
  • Loading branch information
BrunoQuaresma committed Apr 11, 2023
commit aa85819f77e5b66d8dbc7e1fb7b98872fd3f3ca2
18 changes: 18 additions & 0 deletions site/src/__mocks__/monaco-editor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const editor = {
defineTheme: () => {
//
},
create: () => {
return {
dispose: () => {
//
},
}
},
}

const monaco = {
editor,
}

module.exports = monaco