File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 44 branches :
55 - master
66 - main
7+ - beta
78
89jobs :
910 release :
2425 env :
2526 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
2627 GH_TOKEN : ${{ secrets.GH_TOKEN }}
27- run : yarn semantic-release --branches master main
28+ run : yarn semantic-release
Original file line number Diff line number Diff line change 11{
2+ "branches" : [
3+ " main" ,
4+ " master" ,
5+ {
6+ "name" : " beta" ,
7+ "prerelease" : true
8+ }
9+ ],
210 "plugins" : [
311 " @semantic-release/commit-analyzer" ,
412 " @semantic-release/release-notes-generator" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import type { PlaywrightTestConfig } from '@playwright/test';
33// https://playwright.dev/docs/test-configuration
44const config : PlaywrightTestConfig = {
55 testDir : './e2e' ,
6+ timeout : 15 * 1000 ,
67 use : {
78 headless : true ,
89 viewport : { height : 920 , width : 1280 } ,
@@ -13,6 +14,7 @@ const config: PlaywrightTestConfig = {
1314 reuseExistingServer : ! process . env . CI ,
1415 timeout : 120 * 1000 ,
1516 } ,
17+ workers : 1 ,
1618} ;
1719
1820export default config ;
Original file line number Diff line number Diff line change @@ -41,15 +41,15 @@ export const ConnectedUser = <SCG extends DefaultGenerics = StreamChatGenerics>(
4141 useEffect ( ( ) => {
4242 const c = new StreamChat < SCG > ( apiKey ) ;
4343
44- c . connectUser ( { id : userId } , token ) . then ( ( ) => setClient ( c ) ) ;
45-
4644 const handleConnectionChange = ( { online = false } : Event ) => {
4745 if ( ! online ) console . log ( 'connection lost' ) ;
4846 setClient ( c ) ;
4947 } ;
5048
5149 c . on ( 'connection.changed' , handleConnectionChange ) ;
5250
51+ c . connectUser ( { id : userId } , token ) ;
52+
5353 return ( ) => {
5454 c . off ( 'connection.changed' , handleConnectionChange ) ;
5555 c . disconnectUser ( ) . then ( ( ) => console . log ( 'connection closed' ) ) ;
You can’t perform that action at this time.
0 commit comments