feat: plugins v1.5
This commit is contained in:
@@ -73,6 +73,8 @@ export async function activate(context) {
|
||||
|
||||
api.storage.set('coverage', { ok: true });
|
||||
api.storage.get('coverage');
|
||||
await api.clientData.write('coverage', { ok: true });
|
||||
await api.clientData.read('coverage');
|
||||
await api.serverData.write('coverage', { ok: true });
|
||||
await api.serverData.read('coverage');
|
||||
|
||||
@@ -127,6 +129,23 @@ export async function activate(context) {
|
||||
});
|
||||
api.messages.moderateDelete('missing-message-id');
|
||||
api.messages.sync(api.messages.readCurrent());
|
||||
context.subscriptions.push(api.messageBus.subscribe({
|
||||
handler: () => {},
|
||||
latestMessageLimit: 5,
|
||||
replayLatest: true,
|
||||
topic: 'e2e:latest'
|
||||
}));
|
||||
api.messageBus.publish({
|
||||
includeLatestMessages: true,
|
||||
includeSelf: true,
|
||||
latestMessageLimit: 5,
|
||||
payload: { ok: true },
|
||||
topic: 'e2e:latest'
|
||||
});
|
||||
api.messageBus.sendLatestMessages({
|
||||
limit: 5,
|
||||
topic: 'e2e:latest'
|
||||
});
|
||||
|
||||
api.p2p.connectedPeers();
|
||||
api.p2p.broadcastData('e2e:p2p', { ok: true });
|
||||
@@ -146,6 +165,7 @@ export async function activate(context) {
|
||||
await audioContext.close();
|
||||
|
||||
api.storage.remove('coverage');
|
||||
await api.clientData.remove('coverage');
|
||||
await api.serverData.remove('coverage');
|
||||
api.logger.info('all-api plugin completed');
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"description": "Calls every public Toju plugin API surface for user-facing Playwright coverage.",
|
||||
"version": "1.0.0",
|
||||
"kind": "client",
|
||||
"scope": "server",
|
||||
"apiVersion": "1.0.0",
|
||||
"compatibility": {
|
||||
"minimumTojuVersion": "1.0.0",
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"title": "E2E All API Plugin",
|
||||
"description": "Test plugin that calls every public Toju plugin API surface.",
|
||||
"version": "1.0.0",
|
||||
"scope": "server",
|
||||
"author": "MetoYou Tests",
|
||||
"image": "./e2e-all-api/icon.svg",
|
||||
"github": "https://git.azaaxin.com/myxelium/Toju",
|
||||
|
||||
Reference in New Issue
Block a user