jest flaky: spec/frontend/pipelines/graph_shared/links_layer_spec.js
Job #1236366429 failed for c7d26021:
yarn run jest spec/frontend/pipelines/graph_shared/links_layer_spec.js
- not able to recreate locally
FAIL spec/frontend/pipelines/graph_shared/links_layer_spec.js
● links layer component › performance metrics › with metrics path and collect set to true › with duration and no error › it calls reportPerformance with expected arguments
Unexpected unmocked request: {
"method": "post",
"data": "{\"histograms\":[{\"name\":\"pipeline_graph_link_calculation_duration_seconds\",\"value\":0.875},{\"name\":\"pipeline_graph_links_total\",\"value\":7},{\"name\":\"pipeline_graph_links_per_job_ratio\",\"value\":0.875}]}",
"headers": {
"Accept": "application/json, text/plain, */*",
"X-CSRF-Token": null,
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/json;charset=utf-8"
},
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 0,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1
}
Consider using the `axios-mock-adapter` module in tests.
10 | `Unexpected unmocked request: ${JSON.stringify(config, null, 2)}\n` +
11 | 'Consider using the `axios-mock-adapter` module in tests.';
> 12 | const error = new Error(message);
| ^
13 | error.config = config;
14 | global.fail(error);
15 | throw error;
at Object.<anonymous>.axios.defaults.adapter (spec/frontend/mocks/ce/lib/utils/axios_utils.js:12:17)
at dispatchRequest (node_modules/axios/lib/core/dispatchRequest.js:52:10)