mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
## Summary Follow up to #132590. Part of #181111. This updates the developer examples for `@kbn/ml-response-stream` to include a variant with a full Redux Toolkit setup. For this case, the `@kbn/ml-response-stream` now includes a generic slice `streamSlice` that can be used. This allows the actions created to be streamed via NDJSON to be shared across server and client. Functional tests for the examples were added too. To run these tests you can use the following commands: ``` # Start the test server (can continue running) node scripts/functional_tests_server.js --config test/examples/config.js # Start a test run node scripts/functional_test_runner.js --config test/examples/config.js ``` ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) |
||
---|---|---|
.. | ||
bfetch_explorer | ||
content_management | ||
data_view_field_editor_example | ||
discover_customization_examples | ||
error_boundary | ||
expressions_explorer | ||
field_formats | ||
hello_world | ||
partial_results | ||
response_stream | ||
routing | ||
search | ||
state_sync | ||
ui_actions | ||
unified_field_list_examples | ||
config.js | ||
README.md |
Example plugin functional tests
This folder contains functional tests for the example plugins.
Run the test
To run these tests during development you can use the following commands:
# Start the test server (can continue running)
node scripts/functional_tests_server.js --config test/examples/config.js
# Start a test run
node scripts/functional_test_runner.js --config test/examples/config.js
Run Kibana with a test plugin
In case you want to start Kibana with the example plugins, you can just run:
yarn start --run-examples