Skip to content

Commit

Permalink
feat: export FakeAgoraRTC
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Oct 13, 2023
1 parent c25fea2 commit 8ab4dd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ jobs:
- name: Release and Publish
run: |
pnpm release ${{ steps.package-info.outputs.version }} --ci --npm.publish=${{ inputs.publish-npm }} --github.update --github.assets=agora-rtc-sdk-ng-fake.zip
pnpm release ${{ steps.package-info.outputs.version }} --ci --npm.publish=${{ inputs.publish-npm }} --github.update --github.assets=[agora-rtc-sdk-ng-fake.zip,dist/fake-agora-rtc.js]
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { FakeRTCClient } from "./client";
import { createFakeAgoraRTC } from "./top";
import { FakeCameraVideoTrack, FakeMicrophoneAudioTrack } from "./tracks";

Expand All @@ -6,10 +7,13 @@ export * from "./eventemitter";
export * from "./client";
export * from "./version";

export default createFakeAgoraRTC({
export const FakeAgoraRTC = createFakeAgoraRTC({
setAppType(): void {
//
},
createMicrophoneAudioTrack: async () => FakeMicrophoneAudioTrack.create(),
createCameraVideoTrack: async () => FakeCameraVideoTrack.create(),
createClient: () => FakeRTCClient.create(),
});

export default FakeAgoraRTC;

0 comments on commit 8ab4dd6

Please sign in to comment.