Skip to content

Commit

Permalink
chore(core): check for failures
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Apr 3, 2023
1 parent c415852 commit aed5f8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e/workspace-create-npm/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable */
export default {
transform: {
'^.+\\.[tj]sx?$': 'ts-jest',
'^.+\\.[tj]sx?$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
maxWorkers: 1,
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
globals: {},
displayName: 'e2e-workspace-create-npm',
preset: '../../jest.preset.js',
};
8 changes: 7 additions & 1 deletion e2e/workspace-create-npm/src/create-nx-workspace-npm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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);
Expand Down

0 comments on commit aed5f8e

Please sign in to comment.