How to mock module which got through webpack

I am trying to mock module using JASMINE in angular but we are unable to mock it.

Below is code we are using use the module in MainComponent.ts

“””
const authAppService = () => import(“authApp/auth”).then((m) => m.authService);const storeAppService = () => import(“storeApp/store”).then((m) => m.storeService);
“””

“””
import * as authAppService from ‘authApp/auth’;

beforeAll(() => {    mockParseString = spyOn(authAppService, ‘isAuthenticated’).and.callThrough();  });

“””

Getting the error ” Error: Module not found: Error: Can’t resolve ‘authApp/auth’ ” 

When the unit test cases are executed using the command “npm test”