Skip to content

Commit e160d54

Browse files
authored
[APM] Fix precommit script (#81594)
1 parent fb28424 commit e160d54

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

x-pack/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@
183183
"jest": "^26.4.2",
184184
"jest-circus": "^26.4.2",
185185
"jest-cli": "^26.4.2",
186+
"jest-silent-reporter": "^0.2.1",
186187
"jest-styled-components": "^7.0.2",
187188
"js-search": "^1.4.3",
188189
"jsdom": "13.1.0",

x-pack/plugins/apm/scripts/precommit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const tasks = new Listr(
2525
[
2626
resolve(__dirname, './jest.js'),
2727
'--reporters',
28-
resolve(__dirname, './node_modules/jest-silent-reporter'),
28+
resolve(__dirname, '../../../../node_modules/jest-silent-reporter'),
2929
'--collect-coverage',
3030
'false',
3131
],

yarn.lock

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8227,7 +8227,7 @@ [email protected]:
82278227
deep-eql "^0.1.3"
82288228
type-detect "^1.0.0"
82298229

8230-
[email protected], chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.3.2, chalk@^2.4.1, chalk@^2.4.2, chalk@~2.4.1:
8230+
[email protected], chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.3.2, chalk@^2.4.1, chalk@^2.4.2, chalk@~2.4.1:
82318231
version "2.4.2"
82328232
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
82338233
integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
@@ -17249,6 +17249,14 @@ jest-serializer@^26.5.0:
1724917249
"@types/node" "*"
1725017250
graceful-fs "^4.2.4"
1725117251

17252+
jest-silent-reporter@^0.2.1:
17253+
version "0.2.1"
17254+
resolved "https://registry.yarnpkg.com/jest-silent-reporter/-/jest-silent-reporter-0.2.1.tgz#554dd62b800989cdbcfba22bf30a1c0db6ad289c"
17255+
integrity sha512-nEO3oOFHtEXFjlRCbJOlvEWA7ZHyyyvMsU4WHuAhinYBOI4PiX1EIbsZfQZ/cxHcYliHBU9zY8bPxMPdBGksYw==
17256+
dependencies:
17257+
chalk "^2.3.1"
17258+
jest-util "^24.0.0"
17259+
1725217260
jest-snapshot@^26.3.0, jest-snapshot@^26.4.2:
1725317261
version "26.4.2"
1725417262
resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.4.2.tgz#87d3ac2f2bd87ea8003602fbebd8fcb9e94104f6"

0 commit comments

Comments
 (0)