Show plugin documentation in Flipper

Reviewed By: passy

Differential Revision: D29392524

fbshipit-source-id: 675de1fc070b1b8b22d0b27721c16dbd6f7076ef
This commit is contained in:
Anton Nikolaev
2021-06-29 13:00:18 -07:00
committed by Facebook GitHub Bot
parent e4fb2907fd
commit 9fc85730ba
10 changed files with 78 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ test('getPluginDetailsV2', async () => {
"main": "dist/bundle.js",
"name": "flipper-plugin-test",
"pluginType": undefined,
"publishedDocs": undefined,
"source": "src/index.tsx",
"specVersion": 2,
"supportedDevices": undefined,
@@ -135,6 +136,7 @@ test('id used as title if the latter omited', async () => {
"main": "dist/bundle.js",
"name": "flipper-plugin-test",
"pluginType": undefined,
"publishedDocs": undefined,
"source": "src/index.tsx",
"specVersion": 2,
"supportedDevices": undefined,
@@ -175,6 +177,7 @@ test('name without "flipper-plugin-" prefix is used as title if the latter omite
"main": "dist/bundle.js",
"name": "flipper-plugin-test",
"pluginType": undefined,
"publishedDocs": undefined,
"source": "src/index.tsx",
"specVersion": 2,
"supportedDevices": undefined,
@@ -218,6 +221,7 @@ test('flipper-plugin-version is parsed', async () => {
"main": "dist/bundle.js",
"name": "flipper-plugin-test",
"pluginType": undefined,
"publishedDocs": undefined,
"source": "src/index.tsx",
"specVersion": 2,
"supportedDevices": undefined,
@@ -265,6 +269,7 @@ test('plugin type and supported devices parsed', async () => {
"main": "dist/bundle.js",
"name": "flipper-plugin-test",
"pluginType": "device",
"publishedDocs": undefined,
"source": "src/index.tsx",
"specVersion": 2,
"supportedDevices": Array [
@@ -348,6 +353,10 @@ test('can merge two package.json files', async () => {
"main": "dist/bundle.js",
"name": "flipper-plugin-test",
"pluginType": "device",
"publishedDocs": Object {
"overview": true,
"setup": true,
},
"source": "src/index.tsx",
"specVersion": 2,
"supportedDevices": Array [