Nrwl Nx 15 and Jest Test(ing) libraries

When you have a spec file, that runs a test of wich the file you are testing imports from different libraries, Jest will give you this error:

 Test suite failed to run Cannot find module '@yourCompany/application/.../something.ts

To solve this isssue, you have to change your jest.config.ts and jest.preset.ts files.

jest.config.ts

import { getJestProjects } from '@nrwl/jest';

export default {
  projects: getJestProjects(),
};

jest.preset.ts

const nxPreset = require('@nrwl/jest/preset').default;

module.exports = { ...nxPreset };

For more info, check out this github issue.