Add stubs for Performance Web API
Jest 27 has a nasty issue with clearing the Performance Web API when fake timers are enabled. We can workaround that by stubbing Web API that we use with Jest. These stubs will be removed with the next upgrade to Jest 28.
Showing
- ee/spec/frontend/diffs/components/app_spec.js 3 additions, 0 deletionsee/spec/frontend/diffs/components/app_spec.js
- spec/frontend/__helpers__/performance.js 8 additions, 0 deletionsspec/frontend/__helpers__/performance.js
- spec/frontend/design_management/components/image_spec.js 5 additions, 0 deletionsspec/frontend/design_management/components/image_spec.js
- spec/frontend/diffs/components/app_spec.js 2 additions, 0 deletionsspec/frontend/diffs/components/app_spec.js
- spec/frontend/environment.js 0 additions, 6 deletionsspec/frontend/environment.js
- spec/frontend/ide/components/ide_spec.js 3 additions, 0 deletionsspec/frontend/ide/components/ide_spec.js
- spec/frontend/ide/components/repo_editor_spec.js 3 additions, 0 deletionsspec/frontend/ide/components/repo_editor_spec.js
- spec/frontend/ide/ide_router_spec.js 3 additions, 0 deletionsspec/frontend/ide/ide_router_spec.js
- spec/frontend/ide/stores/actions/file_spec.js 3 additions, 0 deletionsspec/frontend/ide/stores/actions/file_spec.js
- spec/frontend/ide/stores/actions/merge_request_spec.js 3 additions, 0 deletionsspec/frontend/ide/stores/actions/merge_request_spec.js
- spec/frontend/ide/stores/actions/tree_spec.js 3 additions, 0 deletionsspec/frontend/ide/stores/actions/tree_spec.js
- spec/frontend/ide/stores/actions_spec.js 3 additions, 0 deletionsspec/frontend/ide/stores/actions_spec.js
- spec/frontend/merge_request_tabs_spec.js 3 additions, 8 deletionsspec/frontend/merge_request_tabs_spec.js
- spec/frontend/pipelines/graph/graph_component_wrapper_spec.js 2 additions, 3 deletions.../frontend/pipelines/graph/graph_component_wrapper_spec.js
- spec/frontend/snippets/components/edit_spec.js 3 additions, 0 deletionsspec/frontend/snippets/components/edit_spec.js
- spec/frontend/snippets/components/show_spec.js 5 additions, 0 deletionsspec/frontend/snippets/components/show_spec.js
- spec/frontend_integration/diffs/diffs_interopability_spec.js 5 additions, 0 deletionsspec/frontend_integration/diffs/diffs_interopability_spec.js
- spec/frontend_integration/ide/ide_integration_spec.js 3 additions, 1 deletionspec/frontend_integration/ide/ide_integration_spec.js
- spec/frontend_integration/ide/user_opens_file_spec.js 2 additions, 0 deletionsspec/frontend_integration/ide/user_opens_file_spec.js
- spec/frontend_integration/ide/user_opens_ide_spec.js 3 additions, 0 deletionsspec/frontend_integration/ide/user_opens_ide_spec.js
Please register or sign in to comment