mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
This copies the fix over from
https://github.com/elastic/kibana/pull/123510 to be used in both
plugin-helpers build calls.
Closes #89079
(cherry picked from commit 371c52a1ed
)
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
This commit is contained in:
parent
61d1fc1d6e
commit
d2d7763a5f
1 changed files with 8 additions and 7 deletions
|
@ -43,8 +43,14 @@ it('builds a generated plugin into a viable archive', async () => {
|
|||
all: true,
|
||||
}
|
||||
);
|
||||
const filterLogs = (logs: string | undefined) => {
|
||||
return logs
|
||||
?.split('\n')
|
||||
.filter((l) => !l.includes('failed to reach ci-stats service'))
|
||||
.join('\n');
|
||||
};
|
||||
|
||||
expect(generateProc.all).toMatchInlineSnapshot(`
|
||||
expect(filterLogs(generateProc.all)).toMatchInlineSnapshot(`
|
||||
" succ 🎉
|
||||
|
||||
Your plugin has been created in plugins/foo_test_plugin
|
||||
|
@ -60,12 +66,7 @@ it('builds a generated plugin into a viable archive', async () => {
|
|||
}
|
||||
);
|
||||
|
||||
expect(
|
||||
buildProc.all
|
||||
?.split('\n')
|
||||
.filter((l) => !l.includes('failed to reach ci-stats service'))
|
||||
.join('\n')
|
||||
).toMatchInlineSnapshot(`
|
||||
expect(filterLogs(buildProc.all)).toMatchInlineSnapshot(`
|
||||
" info deleting the build and target directories
|
||||
info running @kbn/optimizer
|
||||
│ info initialized, 0 bundles cached
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue