forked from jsonnull/electron-trpc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework how subscriptions are cleaned up. (jsonnull#138)
* Rework how subscriptions are cleaned up. * Add e2e tests. * Fix tests. * Tweak e2e pipeline. * Fix e2e test. * Add changeset.
- Loading branch information
Showing
15 changed files
with
284 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'electron-trpc': minor | ||
--- | ||
|
||
Rework how subscriptions are cleaned up. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { _electron as electron } from 'playwright'; | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test('Hello Electron', async () => { | ||
const electronApp = await electron.launch({ args: [`${__dirname}`] }); | ||
|
||
const window = await electronApp.firstWindow(); | ||
expect(await window.title()).toBe('Hello from Electron renderer!'); | ||
|
||
const response = await window.textContent('[data-testid="greeting"]'); | ||
expect(response).toBe('Hello Electron'); | ||
|
||
await electronApp.close(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.