From 34c5ce59d6e7806461663bb5b51fd37ad862869b Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Mon, 9 Feb 2026 17:36:49 -0800 Subject: [PATCH 1/3] test: migrate Enzyme tests to React Testing Library Replace all 21 Enzyme test files with React Testing Library equivalents. Remove enzyme, enzyme-adapter-react-16, enzyme-to-json and their @types packages. Remove Enzyme config from tests/setup.ts and vitest.config.ts. Delete commands-spec.tsx (RTL equivalents already exist in rtl-spec/). Delete all Enzyme-generated snapshot files. Co-Authored-By: Claude Opus 4.6 --- package.json | 5 - src/renderer/components/output.tsx | 2 +- .../__snapshots__/commands-spec.tsx.snap | 112 -- .../dialog-add-theme-spec.tsx.snap | 48 - .../dialog-add-version-spec.tsx.snap | 228 --- .../__snapshots__/dialog-bisect-spec.tsx.snap | 1731 ----------------- .../dialog-generic-spec.tsx.snap | 85 - .../__snapshots__/dialog-token-spec.tsx.snap | 53 - .../__snapshots__/header-spec.tsx.snap | 17 - .../settings-credits-spec.tsx.snap | 109 -- .../settings-electron-spec.tsx.snap | 266 --- .../settings-execution-spec.tsx.snap | 190 -- .../settings-general-appearance-spec.tsx.snap | 100 - ...s-general-block-accelerators-spec.tsx.snap | 28 - .../settings-general-console-spec.tsx.snap | 21 - .../settings-general-font-spec.tsx.snap | 38 - .../settings-general-gist-spec.tsx.snap | 27 - .../settings-general-github-spec.tsx.snap | 68 - .../settings-general-mirror-spec.tsx.snap | 40 - .../settings-general-spec.tsx.snap | 37 - .../__snapshots__/settings-spec.tsx.snap | 476 ----- .../sidebar-package-manager-spec.tsx.snap | 58 - tests/renderer/components/commands-spec.tsx | 88 - .../components/dialog-add-theme-spec.tsx | 137 +- .../components/dialog-add-version-spec.tsx | 189 +- .../components/dialog-bisect-spec.tsx | 223 ++- .../components/dialog-generic-spec.tsx | 61 +- .../renderer/components/dialog-token-spec.tsx | 239 ++- tests/renderer/components/dialogs-spec.tsx | 24 +- tests/renderer/components/header-spec.tsx | 16 +- tests/renderer/components/output-spec.tsx | 82 +- .../components/settings-credits-spec.tsx | 63 +- .../components/settings-electron-spec.tsx | 240 ++- .../components/settings-execution-spec.tsx | 117 +- .../settings-general-appearance-spec.tsx | 86 +- ...ttings-general-block-accelerators-spec.tsx | 39 +- .../settings-general-console-spec.tsx | 29 +- .../components/settings-general-font-spec.tsx | 51 +- .../components/settings-general-gist-spec.tsx | 52 +- .../settings-general-github-spec.tsx | 38 +- .../settings-general-mirror-spec.tsx | 78 +- .../components/settings-general-spec.tsx | 33 +- tests/renderer/components/settings-spec.tsx | 103 +- .../sidebar-package-manager-spec.tsx | 31 +- tests/setup.ts | 16 +- vitest.config.ts | 1 - yarn.lock | 402 +--- 47 files changed, 1173 insertions(+), 5004 deletions(-) delete mode 100644 tests/renderer/components/__snapshots__/commands-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/dialog-add-theme-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/dialog-add-version-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/dialog-bisect-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/dialog-generic-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/dialog-token-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/header-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/settings-credits-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/settings-electron-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/settings-execution-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/settings-general-appearance-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/settings-general-block-accelerators-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/settings-general-console-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/settings-general-font-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/settings-general-gist-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/settings-general-github-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/settings-general-mirror-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/settings-general-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/settings-spec.tsx.snap delete mode 100644 tests/renderer/components/__snapshots__/sidebar-package-manager-spec.tsx.snap delete mode 100644 tests/renderer/components/commands-spec.tsx diff --git a/package.json b/package.json index 93ce216197..13a535db0d 100644 --- a/package.json +++ b/package.json @@ -98,8 +98,6 @@ "@testing-library/user-event": "^14.5.2", "@tsconfig/node22": "^22.0.2", "@types/classnames": "^2.2.11", - "@types/enzyme": "^3.10.8", - "@types/enzyme-adapter-react-16": "^1.0.6", "@types/fs-extra": "^9.0.7", "@types/getos": "^3.0.1", "@types/node": "^22.19.1", @@ -116,9 +114,6 @@ "copy-webpack-plugin": "^11.0.0", "css-loader": "^6.7.1", "electron": "^40.1.0", - "enzyme": "^3.11.0", - "enzyme-adapter-react-16": "^1.15.7", - "enzyme-to-json": "^3.6.1", "eslint": "^8.45.0", "eslint-config-prettier": "^8.8.0", "eslint-import-resolver-typescript": "^3.5.5", diff --git a/src/renderer/components/output.tsx b/src/renderer/components/output.tsx index c10b2a69aa..96b04d0ac8 100644 --- a/src/renderer/components/output.tsx +++ b/src/renderer/components/output.tsx @@ -133,7 +133,7 @@ export const Output = observer( const { isConsoleShowing } = this.props.appState; - if (this.context.mosaicActions) { + if (this.context?.mosaicActions) { const mosaicTree = this.context.mosaicActions.getRoot(); if (isParentNode(mosaicTree)) { // splitPercentage defines the percentage of space the first panel takes diff --git a/tests/renderer/components/__snapshots__/commands-spec.tsx.snap b/tests/renderer/components/__snapshots__/commands-spec.tsx.snap deleted file mode 100644 index 5f5d02f15a..0000000000 --- a/tests/renderer/components/__snapshots__/commands-spec.tsx.snap +++ /dev/null @@ -1,112 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`Commands component > renders when system is darwin 1`] = ` -
-
- - - - - - - - - - -
-
- Electron Fiddle -
-
- - - - -
-
-`; - -exports[`Commands component > renders when system not is darwin 1`] = ` -
-
- - - - - - - - - - -
-
- - - - -
-
-`; diff --git a/tests/renderer/components/__snapshots__/dialog-add-theme-spec.tsx.snap b/tests/renderer/components/__snapshots__/dialog-add-theme-spec.tsx.snap deleted file mode 100644 index 2d1d61b1df..0000000000 --- a/tests/renderer/components/__snapshots__/dialog-add-theme-spec.tsx.snap +++ /dev/null @@ -1,48 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`AddThemeDialog component > renders 1`] = ` - -
- -
-
-
-
- - -
-
-
-`; diff --git a/tests/renderer/components/__snapshots__/dialog-add-version-spec.tsx.snap b/tests/renderer/components/__snapshots__/dialog-add-version-spec.tsx.snap deleted file mode 100644 index 21624556a1..0000000000 --- a/tests/renderer/components/__snapshots__/dialog-add-version-spec.tsx.snap +++ /dev/null @@ -1,228 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`AddVersionDialog component > onSubmit > shows dialog warning when adding duplicate local versions 1`] = ` - -
- -
- - This folder is already in use as version "2.2.2". Would you like to switch to that version now? - -
-
-
- - -
-
-
-`; - -exports[`AddVersionDialog component > renders 1`] = ` - -
- -
- - We found an Electron.app in this folder. -

- Please specify a version, used for typings and the name. Must be - - - semver - - compliant. -

- -
-
-
-
- - -
-
-
-`; - -exports[`AddVersionDialog component > renders 2`] = ` - -
- -
- - We found an Electron.app in this folder. -

- Please specify a version, used for typings and the name. Must be - - - semver - - compliant. -

- -
-
-
-
- - -
-
-
-`; - -exports[`AddVersionDialog component > renders 3`] = ` - -
- -
- - This folder is already in use as version "2.2.2". Would you like to switch to that version now? - -
-
-
- - -
-
-
-`; diff --git a/tests/renderer/components/__snapshots__/dialog-bisect-spec.tsx.snap b/tests/renderer/components/__snapshots__/dialog-bisect-spec.tsx.snap deleted file mode 100644 index 5def60775d..0000000000 --- a/tests/renderer/components/__snapshots__/dialog-bisect-spec.tsx.snap +++ /dev/null @@ -1,1731 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`BisectDialog component > renders 1`] = ` - -
- -

- A "bisect" is a popular method - - - borrowed from - - git - - - - for learning which version of Electron introduced a bug. This tool helps you perform a bisect. -

- -
- - Earliest Version (Last "known good" version) - - - - - - Latest Version (First "known bad" version) - - - - -
-
-
- - - -
-
-
-`; - -exports[`BisectDialog component > renders 2`] = ` - -
- -

- A "bisect" is a popular method - - - borrowed from - - git - - - - for learning which version of Electron introduced a bug. This tool helps you perform a bisect. -

- -
- - Earliest Version (Last "known good" version) - - - - - - Latest Version (First "known bad" version) - - - - -
-
-
- - - -
-
-
-`; - -exports[`BisectDialog component > renders 3`] = ` - -
- -

- A "bisect" is a popular method - - - borrowed from - - git - - - - for learning which version of Electron introduced a bug. This tool helps you perform a bisect. -

- -
- - Earliest Version (Last "known good" version) - - - - - - Latest Version (First "known bad" version) - - - - -
-
-
- - - -
-
-
-`; - -exports[`BisectDialog component > renders 4`] = ` - -
- -

- A "bisect" is a popular method - - - borrowed from - - git - - - - for learning which version of Electron introduced a bug. This tool helps you perform a bisect. -

- -
- - Earliest Version (Last "known good" version) - - - - - - Latest Version (First "known bad" version) - - - - -
-
-
- - - -
-
-
-`; - -exports[`BisectDialog component > renders 5`] = ` - -
- -

- A "bisect" is a popular method - - - borrowed from - - git - - - - for learning which version of Electron introduced a bug. This tool helps you perform a bisect. -

-

- First, write a fiddle that reproduces a bug or an issue. Then, select the earliest version to start your search with. Typically, that's the "last known good" version that did not have the bug. Then, select that latest version to end the search with, usually the "first known bad" version. -

-

- Once you begin your bisect, Fiddle will run your fiddle with a number of Electron versions, closing in on the version that introduced the bug. Once completed, you will know which Electron version introduced your issue. -

-
- - Earliest Version (Last "known good" version) - - - - - - Latest Version (First "known bad" version) - - - - -
-
-
- - - -
-
-
-`; - -exports[`BisectDialog component > renders 6`] = ` - -
- -

- A "bisect" is a popular method - - - borrowed from - - git - - - - for learning which version of Electron introduced a bug. This tool helps you perform a bisect. -

- -
- - Earliest Version (Last "known good" version) - - - - - - Latest Version (First "known bad" version) - - - - -
-
-
- - - -
-
-
-`; - -exports[`BisectDialog component > renders 7`] = ` - -
- -

- A "bisect" is a popular method - - - borrowed from - - git - - - - for learning which version of Electron introduced a bug. This tool helps you perform a bisect. -

- -
- - Earliest Version (Last "known good" version) - - - - - - Latest Version (First "known bad" version) - - - - -
-
-
- - - -
-
-
-`; - -exports[`BisectDialog component > renders 8`] = ` - -
- -

- A "bisect" is a popular method - - - borrowed from - - git - - - - for learning which version of Electron introduced a bug. This tool helps you perform a bisect. -

- -
- - Earliest Version (Last "known good" version) - - - - - - Latest Version (First "known bad" version) - - - - -
-
-
- - - -
-
-
-`; - -exports[`BisectDialog component > renders 9`] = ` - -
- -

- A "bisect" is a popular method - - - borrowed from - - git - - - - for learning which version of Electron introduced a bug. This tool helps you perform a bisect. -

- -
- - Earliest Version (Last "known good" version) - - - - - - Latest Version (First "known bad" version) - - - - -
-
-
- - - -
-
-
-`; - -exports[`BisectDialog component > renders 10`] = ` - -
- -

- A "bisect" is a popular method - - - borrowed from - - git - - - - for learning which version of Electron introduced a bug. This tool helps you perform a bisect. -

-

- First, write a fiddle that reproduces a bug or an issue. Then, select the earliest version to start your search with. Typically, that's the "last known good" version that did not have the bug. Then, select that latest version to end the search with, usually the "first known bad" version. -

-

- Once you begin your bisect, Fiddle will run your fiddle with a number of Electron versions, closing in on the version that introduced the bug. Once completed, you will know which Electron version introduced your issue. -

-
- - Earliest Version (Last "known good" version) - - - - - - Latest Version (First "known bad" version) - - - - -
-
-
- - - -
-
-
-`; diff --git a/tests/renderer/components/__snapshots__/dialog-generic-spec.tsx.snap b/tests/renderer/components/__snapshots__/dialog-generic-spec.tsx.snap deleted file mode 100644 index ed35a117ca..0000000000 --- a/tests/renderer/components/__snapshots__/dialog-generic-spec.tsx.snap +++ /dev/null @@ -1,85 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`GenericDialog component > renders > confirmation 1`] = ` - -

- -`; - -exports[`GenericDialog component > renders > success 1`] = ` - -

- -`; - -exports[`GenericDialog component > renders > warning 1`] = ` - -

- -`; - -exports[`GenericDialog component > renders > with an input prompt 1`] = ` - -

- - -`; - -exports[`GenericDialog component > renders > with an input prompt and placeholder 1`] = ` - -

- - -`; diff --git a/tests/renderer/components/__snapshots__/dialog-token-spec.tsx.snap b/tests/renderer/components/__snapshots__/dialog-token-spec.tsx.snap deleted file mode 100644 index 0eb6eca0f0..0000000000 --- a/tests/renderer/components/__snapshots__/dialog-token-spec.tsx.snap +++ /dev/null @@ -1,53 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`TokenDialog component > renders 1`] = ` - -

-

- Generate a - - - GitHub Personal Access Token - - - and paste it here: -

- -
-
-
- - -
-
- -`; diff --git a/tests/renderer/components/__snapshots__/header-spec.tsx.snap b/tests/renderer/components/__snapshots__/header-spec.tsx.snap deleted file mode 100644 index 077fd7f487..0000000000 --- a/tests/renderer/components/__snapshots__/header-spec.tsx.snap +++ /dev/null @@ -1,17 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`Header component > renders 1`] = ` - - - - -`; diff --git a/tests/renderer/components/__snapshots__/settings-credits-spec.tsx.snap b/tests/renderer/components/__snapshots__/settings-credits-spec.tsx.snap deleted file mode 100644 index 7d26aaeed7..0000000000 --- a/tests/renderer/components/__snapshots__/settings-credits-spec.tsx.snap +++ /dev/null @@ -1,109 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`CreditsSettings component > renders 1`] = ` -
-

- Credits -

- - Electron Fiddle is, just like Electron, a free open source project welcoming contributors of all genders, cultures, and backgrounds. We would like to thank those who helped to make Electron Fiddle: - -
-
- -
-
-

- Felix Rieseberg -

-

- 📍 - San Francisco -

- - 🙇 ✨🌳 - -
- -
-
-`; - -exports[`CreditsSettings component > renders for contributors with less data 1`] = ` -
-

- Credits -

- - Electron Fiddle is, just like Electron, a free open source project welcoming contributors of all genders, cultures, and backgrounds. We would like to thank those who helped to make Electron Fiddle: - -
-
- -
-
-

- felixrieseberg -

-
- -
-
-`; - -exports[`CreditsSettings component > renders nothing if we do not have contributors 1`] = ` -
-

- Credits -

- - Electron Fiddle is, just like Electron, a free open source project welcoming contributors of all genders, cultures, and backgrounds. We would like to thank those who helped to make Electron Fiddle: - -
-
-
-`; diff --git a/tests/renderer/components/__snapshots__/settings-electron-spec.tsx.snap b/tests/renderer/components/__snapshots__/settings-electron-spec.tsx.snap deleted file mode 100644 index 2280876421..0000000000 --- a/tests/renderer/components/__snapshots__/settings-electron-spec.tsx.snap +++ /dev/null @@ -1,266 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`ElectronSettings component > renders 1`] = ` -
-

- Electron Settings -

- - -
- - - - - - - - - - -
-
- - - - - -
-
-
-
- - - - - - - - -
-
-
- Version -
-
- Status -
-
- Action -
-
- - - -
-
-
-`; diff --git a/tests/renderer/components/__snapshots__/settings-execution-spec.tsx.snap b/tests/renderer/components/__snapshots__/settings-execution-spec.tsx.snap deleted file mode 100644 index 44196c8572..0000000000 --- a/tests/renderer/components/__snapshots__/settings-execution-spec.tsx.snap +++ /dev/null @@ -1,190 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`ExecutionSettings component > renders 1`] = ` -
-

- Execution -

- - These advanced settings control how Electron Fiddle executes your fiddles. - -
- - -

- Whenever Electron runs, it creates a user data directory for cookies, the cache, and various other things that it needs to keep around. Since fiddles are usually just run once, we delete this directory after your fiddle exits. Enable this setting to keep the user data directories around. -

- -
-
-
- - -

- There are some flags that Electron uses to log extra information both internally and through Chromium. Enable this option to make Fiddle produce those logs. Enabling advanced Electron logging will set the - - ELECTRON_ENABLE_LOGGING - - , - - - ELECTRON_DEBUG_NOTIFICATION - - , and - - - ELECTRON_ENABLE_STACK_DUMPING - - environment variables to true. See - - - documentation - - - for more information about what they do. -

- -
-
-
- - -

- Electron allows starting the executable with - - - user-provided flags - - , such as - - --js-flags=--expose-gc - - . Those can be added to run when you start your Fiddles. -

-
- - } - value="" - /> -
- - - Add New Flag - - -
-
- - -

- Electron allows starting the executable with - - - user-provided environment variables - - , such as - - - NODE_OPTIONS="--no-warnings --max-old-space-size=2048" - - . Those can be added here to run when you start your Fiddles. -

-
- - } - value="" - /> -
- - - Add New Variable - - -
-
- - - - Electron Fiddle will install packages if you specify them. It uses - - - npm - - - as its package manager by default, but - - - Yarn - - - is also available. - - - - - - - -
-`; diff --git a/tests/renderer/components/__snapshots__/settings-general-appearance-spec.tsx.snap b/tests/renderer/components/__snapshots__/settings-general-appearance-spec.tsx.snap deleted file mode 100644 index 14c65408c0..0000000000 --- a/tests/renderer/components/__snapshots__/settings-general-appearance-spec.tsx.snap +++ /dev/null @@ -1,100 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`AppearanceSettings component > renderItem() > returns a MenuItem for matching 1`] = ` - -`; - -exports[`AppearanceSettings component > renders 1`] = ` -
-

- Appearance -

- - - - } - onItemSelect={[Function]} - popoverProps={ - { - "onClosed": [Function], - } - } - > - - - - -
-`; diff --git a/tests/renderer/components/__snapshots__/settings-general-block-accelerators-spec.tsx.snap b/tests/renderer/components/__snapshots__/settings-general-block-accelerators-spec.tsx.snap deleted file mode 100644 index 16b7c5e994..0000000000 --- a/tests/renderer/components/__snapshots__/settings-general-block-accelerators-spec.tsx.snap +++ /dev/null @@ -1,28 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`BlockAcceleratorsSettings component > renders 1`] = ` -
-

- Block Keyboard Shortcuts -

- - -

- Any keyboard shortcuts checked below will be disabled. -

- - -
-
-
-`; diff --git a/tests/renderer/components/__snapshots__/settings-general-console-spec.tsx.snap b/tests/renderer/components/__snapshots__/settings-general-console-spec.tsx.snap deleted file mode 100644 index bd88b56f6b..0000000000 --- a/tests/renderer/components/__snapshots__/settings-general-console-spec.tsx.snap +++ /dev/null @@ -1,21 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`ConsoleSettings component > renders 1`] = ` -
-

- Console -

- - -

- Enable this option to automatically clear the console whenever you run your - fiddle. -

- -
-
-
-`; diff --git a/tests/renderer/components/__snapshots__/settings-general-font-spec.tsx.snap b/tests/renderer/components/__snapshots__/settings-general-font-spec.tsx.snap deleted file mode 100644 index 9ee845187d..0000000000 --- a/tests/renderer/components/__snapshots__/settings-general-font-spec.tsx.snap +++ /dev/null @@ -1,38 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`FontSettings component > renders 1`] = ` -
-

- Font Settings -

- -

- Set a font family and size for your editors. Reload or restart for changes to take effect. -

- - - - - - - -
-
-`; diff --git a/tests/renderer/components/__snapshots__/settings-general-gist-spec.tsx.snap b/tests/renderer/components/__snapshots__/settings-general-gist-spec.tsx.snap deleted file mode 100644 index 764eb51440..0000000000 --- a/tests/renderer/components/__snapshots__/settings-general-gist-spec.tsx.snap +++ /dev/null @@ -1,27 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`PackageAuthorSettings component > renders 1`] = ` -
-

- Gists -

- - -

- Set the package.json author field for your exported Fiddle projects. -

- -

- Show the history of your Gist uploads and optionally load previous revisions. -

- -
-
-
-`; diff --git a/tests/renderer/components/__snapshots__/settings-general-github-spec.tsx.snap b/tests/renderer/components/__snapshots__/settings-general-github-spec.tsx.snap deleted file mode 100644 index 1e08b14670..0000000000 --- a/tests/renderer/components/__snapshots__/settings-general-github-spec.tsx.snap +++ /dev/null @@ -1,68 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`GitHubSettings component > renders when not signed in 1`] = ` -
-

- GitHub -

- -

- Your fiddles can be published as GitHub Gists - that way you can share your fiddles with the world! -

- -
- - -

- Enable this option to always publish your fiddle as a revision of the - default fiddle gist values. -

- -
-
-
-`; - -exports[`GitHubSettings component > renders when signed in 1`] = ` -
-

- GitHub -

- -

- Your fiddles can be published as public GitHub Gists. Using the personal access token you gave us, we logged you into GitHub as - - - Test User - - . -

- -
- - -

- Enable this option to always publish your fiddle as a revision of the - default fiddle gist values. -

- -
-
-
-`; diff --git a/tests/renderer/components/__snapshots__/settings-general-mirror-spec.tsx.snap b/tests/renderer/components/__snapshots__/settings-general-mirror-spec.tsx.snap deleted file mode 100644 index b52263db00..0000000000 --- a/tests/renderer/components/__snapshots__/settings-general-mirror-spec.tsx.snap +++ /dev/null @@ -1,40 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`MirrorSettings component > renders 1`] = ` -
-

- Electron Mirrors -

- - - - - - - - - -
-`; diff --git a/tests/renderer/components/__snapshots__/settings-general-spec.tsx.snap b/tests/renderer/components/__snapshots__/settings-general-spec.tsx.snap deleted file mode 100644 index f9bd4c9331..0000000000 --- a/tests/renderer/components/__snapshots__/settings-general-spec.tsx.snap +++ /dev/null @@ -1,37 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`GeneralSettings component > renders 1`] = ` -
-

- General Settings -

- - - - - - - - - - - - - -
-`; diff --git a/tests/renderer/components/__snapshots__/settings-spec.tsx.snap b/tests/renderer/components/__snapshots__/settings-spec.tsx.snap deleted file mode 100644 index f77c74f181..0000000000 --- a/tests/renderer/components/__snapshots__/settings-spec.tsx.snap +++ /dev/null @@ -1,476 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`Settings component > renders only the menu if page unknown 1`] = ` -
-
-
    - - - - -
-
-
- -
-
-`; - -exports[`Settings component > renders the Credits page after a click 1`] = ` -
-
-
    - - - - -
-
-
- - -
-
-`; - -exports[`Settings component > renders the Electron page after a click 1`] = ` -
-
-
    - - - - -
-
-
- - -
-
-`; - -exports[`Settings component > renders the Electron page by default 1`] = ` -
-
-
    - - - - -
-
-
- - -
-
-`; - -exports[`Settings component > renders the Execution page after a click 1`] = ` -
-
-
    - - - - -
-
-
- - -
-
-`; - -exports[`Settings component > renders the General page after a click 1`] = ` -
-
-
    - - - - -
-
-
- - -
-
-`; diff --git a/tests/renderer/components/__snapshots__/sidebar-package-manager-spec.tsx.snap b/tests/renderer/components/__snapshots__/sidebar-package-manager-spec.tsx.snap deleted file mode 100644 index 32a35b7901..0000000000 --- a/tests/renderer/components/__snapshots__/sidebar-package-manager-spec.tsx.snap +++ /dev/null @@ -1,58 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`SidebarPackageManager component > renders 1`] = ` -
-
- Modules -
- - Search for modules here... - - } - onItemSelect={[Function]} - onQueryChange={[Function]} - openOnKeyDown={false} - popoverProps={ - { - "fill": true, - "minimal": true, - "usePortal": false, - } - } - resetOnClose={false} - resetOnSelect={true} - /> - -