Browse Source

ref(ts): Convert pipelineView.spec to tsx (#52014)

Evan Purkhiser 1 year ago
parent
commit
ff9569a9f8
1 changed files with 1 additions and 4 deletions
  1. 1 4
      static/app/views/integrationPipeline/pipelineView.spec.tsx

+ 1 - 4
static/app/views/integrationPipeline/pipelineView.spec.jsx → static/app/views/integrationPipeline/pipelineView.spec.tsx

@@ -25,10 +25,7 @@ describe('PipelineView', () => {
   });
 
   it('errros on invalid pipelineName', () => {
-    jest.spyOn(console, 'error');
-
-    // eslint-disable-next-line no-console
-    console.error.mockImplementation(() => {});
+    jest.spyOn(console, 'error').mockImplementation(() => {});
 
     expect(() => render(<PipelineView pipelineName="other" />)).toThrow(
       'Invalid pipeline name other'