+ + App version: {{ APP_VERSION }} +
+ +
+ For a guide and recipes on how to configure / customize this project,
+ check out the
+
+ vite-electron-builder documentation
+
+ .
+
+ Edit
+ packages/renderer/src/App.vue
to test hot module replacement.
+
{{ lib }} : | +v{{ version }} | +
---|
packages/renderer/src/components/ElectronVersions.vue
+
+
+
diff --git a/packages/renderer/src/components/ReactiveCounter.vue b/packages/renderer/src/components/ReactiveCounter.vue
new file mode 100644
index 0000000..e218d2d
--- /dev/null
+++ b/packages/renderer/src/components/ReactiveCounter.vue
@@ -0,0 +1,11 @@
+
+
+
+
+ packages/renderer/src/components/ReactiveCounter.vue
+
diff --git a/packages/renderer/src/components/ReactiveHash.vue b/packages/renderer/src/components/ReactiveHash.vue
new file mode 100644
index 0000000..d943ced
--- /dev/null
+++ b/packages/renderer/src/components/ReactiveHash.vue
@@ -0,0 +1,53 @@
+
+
+
+ + + | ++ + | +
---|---|
+ + | ++ + | +
packages/renderer/src/components/ReactiveHash.vue
+
+
+
diff --git a/packages/renderer/src/index.ts b/packages/renderer/src/index.ts
new file mode 100644
index 0000000..8fdab3b
--- /dev/null
+++ b/packages/renderer/src/index.ts
@@ -0,0 +1,4 @@
+import {createApp} from 'vue';
+import App from '/@/App.vue';
+
+createApp(App).mount('#app');
diff --git a/packages/renderer/tests/ElectronVersions.spec.ts b/packages/renderer/tests/ElectronVersions.spec.ts
new file mode 100644
index 0000000..ece6fa2
--- /dev/null
+++ b/packages/renderer/tests/ElectronVersions.spec.ts
@@ -0,0 +1,23 @@
+import {mount} from '@vue/test-utils';
+import {expect, test, vi} from 'vitest';
+import ElectronVersions from '../src/components/ElectronVersions.vue';
+
+vi.mock('#preload', () => {
+ return {
+ versions: {lib1: 1, lib2: 2},
+ };
+});
+
+test('ElectronVersions component', async () => {
+ expect(ElectronVersions).toBeTruthy();
+ const wrapper = mount(ElectronVersions);
+
+ const rows = wrapper.findAll