Skip to content

Commit 08006af

Browse files
committed
😡
1 parent 8f8bae2 commit 08006af

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

‎packages/kbn-plugin-helpers/src/integration_tests/build.test.ts‎

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,28 +61,24 @@ it('builds a generated plugin into a viable archive', async () => {
6161
"
6262
`);
6363

64-
const buildProc = await execa('yarn', ['build', '--kibana-version', '7.5.0'], {
65-
cwd: PLUGIN_DIR,
66-
all: true,
67-
env: {
68-
// prevent yarn from silencing itself on CI
69-
YARN_SILENT: '0',
70-
},
71-
});
64+
const buildProc = await execa(
65+
process.execPath,
66+
['../../scripts/plugin_helpers', 'build', '--kibana-version', '7.5.0'],
67+
{
68+
cwd: PLUGIN_DIR,
69+
all: true,
70+
}
71+
);
7272

7373
expect(buildProc.all).toMatchInlineSnapshot(`
74-
"yarn run <version>
75-
$ yarn plugin-helpers build --kibana-version 7.5.0
76-
$ node ../../scripts/plugin_helpers build --kibana-version 7.5.0
77-
info deleting the build and target directories
74+
" info deleting the build and target directories
7875
info running @kbn/optimizer
7976
│ info initialized, 0 bundles cached
8077
│ info starting worker [1 bundle]
8178
│ succ 1 bundles compiled successfully after <time>
8279
info copying source into the build and converting with babel
8380
info running yarn to install dependencies
84-
info compressing plugin into [fooTestPlugin-7.5.0.zip]
85-
Done in <time>."
81+
info compressing plugin into [fooTestPlugin-7.5.0.zip]"
8682
`);
8783

8884
await decompress(PLUGIN_ARCHIVE, TMP_DIR);

0 commit comments

Comments
 (0)