@optimizely/ocp-local-env 1.0.0-beta.13 → 1.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/package.json +6 -1
- package/dist/public/bundle.9ecff4861dc6af9af49a.js +3 -0
- package/dist/public/bundle.9ecff4861dc6af9af49a.js.map +1 -0
- package/dist/public/index.html +1 -1
- package/dist/src/cli.js +2 -2
- package/dist/src/cli.js.map +1 -1
- package/dist/src/executor/JobExecutor.js +0 -17
- package/dist/src/executor/JobExecutor.js.map +1 -1
- package/dist/src/local_engine/LocalNotifier.d.ts +2 -0
- package/dist/src/local_engine/LocalNotifier.js +7 -0
- package/dist/src/local_engine/LocalNotifier.js.map +1 -1
- package/dist/src/local_engine/LocalSourceApi.d.ts +40 -0
- package/dist/src/local_engine/LocalSourceApi.js +69 -0
- package/dist/src/local_engine/LocalSourceApi.js.map +1 -0
- package/dist/src/local_engine/local-engine-child-base.d.ts +0 -12
- package/dist/src/local_engine/local-engine-child-base.js +0 -127
- package/dist/src/local_engine/local-engine-child-base.js.map +1 -1
- package/dist/src/local_engine/local-engine-client.d.ts +19 -29
- package/dist/src/local_engine/local-engine-client.js +41 -94
- package/dist/src/local_engine/local-engine-client.js.map +1 -1
- package/dist/src/local_engine/local-engine-types.d.ts +13 -50
- package/dist/src/local_engine/local-engine-unified.d.ts +6 -13
- package/dist/src/local_engine/local-engine-unified.js +51 -217
- package/dist/src/local_engine/local-engine-unified.js.map +1 -1
- package/dist/src/local_engine/localSDKConfig.d.ts +6 -0
- package/dist/src/local_engine/localSDKConfig.js +23 -1
- package/dist/src/local_engine/localSDKConfig.js.map +1 -1
- package/dist/src/local_engine/storage/LocalConfigStore.d.ts +0 -17
- package/dist/src/local_engine/storage/LocalConfigStore.js +1 -38
- package/dist/src/local_engine/storage/LocalConfigStore.js.map +1 -1
- package/dist/src/local_engine/storage/SourceDataStore.d.ts +16 -14
- package/dist/src/local_engine/storage/SourceDataStore.js +57 -57
- package/dist/src/local_engine/storage/SourceDataStore.js.map +1 -1
- package/dist/src/server/api/destinations.js +1 -1
- package/dist/src/server/api/destinations.js.map +1 -1
- package/dist/src/server/api/opalTools.js +1 -1
- package/dist/src/server/api/opalTools.js.map +1 -1
- package/dist/src/server/api/sources.d.ts +1 -2
- package/dist/src/server/api/sources.js +16 -275
- package/dist/src/server/api/sources.js.map +1 -1
- package/dist/src/server/api/v1.js +43 -0
- package/dist/src/server/api/v1.js.map +1 -1
- package/dist/src/server/api.d.ts +4 -0
- package/dist/src/server/api.js +105 -8
- package/dist/src/server/api.js.map +1 -1
- package/dist/src/server/browserFocus.d.ts +5 -0
- package/dist/src/server/browserFocus.js +39 -0
- package/dist/src/server/browserFocus.js.map +1 -0
- package/dist/src/server/config.d.ts +3 -0
- package/dist/src/server/config.js +7 -0
- package/dist/src/server/config.js.map +1 -1
- package/dist/src/server/mockDataGenerator.d.ts +1 -1
- package/dist/src/server/mockDataGenerator.js +75 -33
- package/dist/src/server/mockDataGenerator.js.map +1 -1
- package/dist/src/server/mockToolDataGenerator.d.ts +1 -1
- package/dist/src/server/mockToolDataGenerator.js +138 -96
- package/dist/src/server/mockToolDataGenerator.js.map +1 -1
- package/dist/src/server.js +97 -155
- package/dist/src/server.js.map +1 -1
- package/dist/src/types/app.d.ts +0 -1
- package/dist/src/ui/components/App.js +165 -44
- package/dist/src/ui/components/App.js.map +1 -1
- package/dist/src/ui/components/FunctionsView.d.ts +1 -0
- package/dist/src/ui/components/FunctionsView.js +32 -25
- package/dist/src/ui/components/FunctionsView.js.map +1 -1
- package/dist/src/ui/components/JobsView.js +1 -1
- package/dist/src/ui/components/JobsView.js.map +1 -1
- package/dist/src/ui/components/NotificationViewer.d.ts +2 -11
- package/dist/src/ui/components/NotificationViewer.js +62 -9
- package/dist/src/ui/components/NotificationViewer.js.map +1 -1
- package/dist/src/ui/components/OpalToolsView.d.ts +1 -0
- package/dist/src/ui/components/OpalToolsView.js +9 -3
- package/dist/src/ui/components/OpalToolsView.js.map +1 -1
- package/dist/src/ui/components/SourceEmittedDataPanel.d.ts +8 -0
- package/dist/src/ui/components/SourceEmittedDataPanel.js +103 -0
- package/dist/src/ui/components/SourceEmittedDataPanel.js.map +1 -0
- package/dist/src/ui/components/SourcesView.js +4 -8
- package/dist/src/ui/components/SourcesView.js.map +1 -1
- package/dist/src/ui/components/StoreViewer.js +1 -1
- package/dist/src/ui/components/StoreViewer.js.map +1 -1
- package/dist/src/ui/components/TabbedConsole.d.ts +4 -0
- package/dist/src/ui/components/TabbedConsole.js +54 -6
- package/dist/src/ui/components/TabbedConsole.js.map +1 -1
- package/dist/src/ui/store/formStateSlice.d.ts +1 -1
- package/dist/src/ui/store/formStateSlice.js +1 -1
- package/package.json +6 -1
- package/dist/public/bundle.722850005313c74f911a.js +0 -3
- package/dist/public/bundle.722850005313c74f911a.js.map +0 -1
- package/dist/src/executor/SourceExecutor.d.ts +0 -32
- package/dist/src/executor/SourceExecutor.js +0 -163
- package/dist/src/executor/SourceExecutor.js.map +0 -1
- package/dist/src/local_engine/storage/SourceJobExecutionStore.d.ts +0 -25
- package/dist/src/local_engine/storage/SourceJobExecutionStore.js +0 -61
- package/dist/src/local_engine/storage/SourceJobExecutionStore.js.map +0 -1
- package/dist/src/ui/components/SourceDataViewer.d.ts +0 -8
- package/dist/src/ui/components/SourceDataViewer.js +0 -84
- package/dist/src/ui/components/SourceDataViewer.js.map +0 -1
- package/dist/src/ui/components/SourceJobsSection.d.ts +0 -8
- package/dist/src/ui/components/SourceJobsSection.js +0 -99
- package/dist/src/ui/components/SourceJobsSection.js.map +0 -1
- package/dist/src/ui/components/SourceLifecycleSection.d.ts +0 -7
- package/dist/src/ui/components/SourceLifecycleSection.js +0 -58
- package/dist/src/ui/components/SourceLifecycleSection.js.map +0 -1
- package/dist/src/ui/components/SourceWebhookEditor.d.ts +0 -8
- package/dist/src/ui/components/SourceWebhookEditor.js +0 -181
- package/dist/src/ui/components/SourceWebhookEditor.js.map +0 -1
- /package/dist/public/{bundle.722850005313c74f911a.js.LICENSE.txt → bundle.9ecff4861dc6af9af49a.js.LICENSE.txt} +0 -0
package/README.md
CHANGED
|
@@ -42,6 +42,27 @@ npm install -g @optimizely/ocp-local-env
|
|
|
42
42
|
3. The tool will automatically open your browser to <http://localhost:3000>
|
|
43
43
|
4. Start developing and testing your OCP app
|
|
44
44
|
|
|
45
|
+
## Development
|
|
46
|
+
|
|
47
|
+
### Running Tests
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Run unit tests
|
|
51
|
+
yarn test
|
|
52
|
+
|
|
53
|
+
# Run E2E tests (requires setup first)
|
|
54
|
+
yarn test:e2e:setup # Clone test app and install dependencies
|
|
55
|
+
yarn test:e2e # Run Playwright tests
|
|
56
|
+
|
|
57
|
+
# E2E test options
|
|
58
|
+
yarn test:e2e:ui # Run with Playwright UI
|
|
59
|
+
yarn test:e2e:debug # Run in debug mode
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### E2E Test App
|
|
63
|
+
|
|
64
|
+
E2E tests use a real OCP app (`hub-shakedown`) to test the local testing tool. The app is cloned into `e2e/apps/` during setup. You can specify a different test app using the `E2E_TEST_APP` environment variable.
|
|
65
|
+
|
|
45
66
|
## Documentation
|
|
46
67
|
|
|
47
68
|
https://docs.developers.optimizely.com/optimizely-connect-platform/docs/local-testing#/versions
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optimizely/ocp-local-env",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.15",
|
|
4
4
|
"description": "Local testing environment for Optimizely Connect Platform (OCP) applications",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"dev:ui": "webpack --mode development --watch",
|
|
18
18
|
"start": "node dist/src/server.js",
|
|
19
19
|
"test": "jest",
|
|
20
|
+
"test:e2e": "playwright test",
|
|
21
|
+
"test:e2e:setup": "node scripts/setup-e2e-apps.js",
|
|
22
|
+
"test:e2e:ui": "playwright test --ui",
|
|
23
|
+
"test:e2e:debug": "playwright test --debug",
|
|
20
24
|
"lint": "npx eslint 'src/**'",
|
|
21
25
|
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
22
26
|
"prepare": "npm run build",
|
|
@@ -58,6 +62,7 @@
|
|
|
58
62
|
},
|
|
59
63
|
"devDependencies": {
|
|
60
64
|
"@optimizely/axiom-icons": "^1.13.1",
|
|
65
|
+
"@playwright/test": "^1.40.0",
|
|
61
66
|
"@testing-library/dom": "^10.4.1",
|
|
62
67
|
"@testing-library/jest-dom": "^6.9.1",
|
|
63
68
|
"@testing-library/react": "^16.3.0",
|