diff --git a/e2e/workspace-create-npm/jest.config.ts b/e2e/workspace-create-npm/jest.config.ts index 893e2c7c9ff5f1..577af9c54737b5 100644 --- a/e2e/workspace-create-npm/jest.config.ts +++ b/e2e/workspace-create-npm/jest.config.ts @@ -1,11 +1,11 @@ /* eslint-disable */ export default { transform: { - '^.+\\.[tj]sx?$': 'ts-jest', + '^.+\\.[tj]sx?$': ['ts-jest', { tsconfig: '/tsconfig.spec.json' }], }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], maxWorkers: 1, - globals: { 'ts-jest': { tsconfig: '/tsconfig.spec.json' } }, + globals: {}, displayName: 'e2e-workspace-create-npm', preset: '../../jest.preset.js', }; diff --git a/e2e/workspace-create-npm/src/create-nx-workspace-npm.test.ts b/e2e/workspace-create-npm/src/create-nx-workspace-npm.test.ts index 1fdcf0f87538d1..2ae355ae4eaf51 100644 --- a/e2e/workspace-create-npm/src/create-nx-workspace-npm.test.ts +++ b/e2e/workspace-create-npm/src/create-nx-workspace-npm.test.ts @@ -14,7 +14,10 @@ describe('create-nx-workspace --preset=npm', () => { const wsName = uniq('npm'); const packageManager = getSelectedPackageManager() || 'pnpm'; + let originalVerbose; beforeAll(() => { + originalVerbose = process.env.NX_VERBOSE_LOGGING; + process.env.NX_VERBOSE_LOGGING = 'true'; runCreateWorkspace(wsName, { preset: 'npm', packageManager, @@ -25,7 +28,10 @@ describe('create-nx-workspace --preset=npm', () => { runCommand(`git reset --hard`); }); - afterAll(() => cleanupProject()); + afterAll(() => { + process.env.NX_VERBOSE_LOGGING = originalVerbose; + cleanupProject(); + }); it('should add angular application', () => { packageInstall('@nrwl/angular', wsName);