[9.3] [@kbn/scout-{oblt,search,security}] Update Solutions API tests to use API expect (#250772)#250878
Merged
steliosmavro merged 2 commits intoelastic:9.3from Jan 30, 2026
Merged
Conversation
… API `expect` (elastic#250772) ## Summary Updates Solutions API tests to use the dedicated API `expect` from `@kbn/scout/api` and adds an ESLint rule to enforce correct import paths. ### Changes - Added `api.ts` exports for `@kbn/scout-oblt`, `@kbn/scout-search`, and `@kbn/scout-security` packages - Updated solutions API tests to import `expect` from `@kbn/scout-oblt/api` - Changed assertions from `toBeTruthy()`/`toBeFalsy()` to explicit `toBe(true)`/`toBe(false)` - Refactored stack trace handling to use native `Error.captureStackTrace` instead of manually filtering stack lines - Added ESLint rule `scout_expect_import` to validate `expect` imports based on test type (api/ui) (cherry picked from commit 96d91d8)
Contributor
💔 Build Failed
Failed CI StepsTest FailuresMetrics [docs]
History
|
fake-haris
approved these changes
Jan 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto9.3:expect(#250772)Questions ?
Please refer to the Backport tool documentation