interface FooInterface {
  foo: string,
  bar: number, //This interface should be stripped and the line numbers should still fit.
}

export const foo = () => {
  console.log('foo');
};

export class Hello {
  constructor() {
    const greeting = `
      this
      is
      a
      multiline
      greeting
    `;

    this.unexcuted(() => { });

    throw new Error('Hello error!');
  }

  public unexcuted(action: () => void = () => { }): void {
    if (action) {
      action();
    } else {
      console.log('unexcuted');
    }
  }
}

interface FooInterface {
    foo: string,
    bar: number, //This interface should be stripped and the line numbers should still fit.
}

export const foo = () => {
    console.log('foo');
};


jest.mock('path');
jest.mock('path');
jest.mock('path');
jest.mock('path');
jest.mock('path');
jest.mock('path');

export class Hello {
  constructor() {
    const greeting = `
      this
      is
      a
      multiline
      greeting
    `;

    this.unexcuted(() => { });

    throw new Error('Hello error!');
  }

  public unexcuted(action: () => void = () => { }): void {
    if (action) {
      action();
    } else {
      console.log('unexcuted');
    }
  }
}


jest.mock('path');
jest.mock('path');
jest.mock('path');
jest.mock('path');
jest.mock('path');
jest.mock('path');
jest.mock('path');
jest.mock('path');
jest.mock('path');

--- 
+++ 
@@ -1,19 +1,11 @@
 interface FooInterface {
-    foo: string,
-    bar: number, //This interface should be stripped and the line numbers should still fit.
+  foo: string,
+  bar: number, //This interface should be stripped and the line numbers should still fit.
 }
 
 export const foo = () => {
-    console.log('foo');
+  console.log('foo');
 };
-
-
-jest.mock('path');
-jest.mock('path');
-jest.mock('path');
-jest.mock('path');
-jest.mock('path');
-jest.mock('path');
 
 export class Hello {
   constructor() {
@@ -38,14 +30,3 @@
     }
   }
 }
-
-
-jest.mock('path');
-jest.mock('path');
-jest.mock('path');
-jest.mock('path');
-jest.mock('path');
-jest.mock('path');
-jest.mock('path');
-jest.mock('path');
-jest.mock('path');
Remove the mock calls from the test application file
