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 1aef7b9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 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',
};
12 changes: 9 additions & 3 deletions e2e/workspace-create-npm/src/create-nx-workspace-npm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,24 @@ 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,
});
});

beforeEach(() => {
runCommand(`git reset --hard`);
afterEach(() => {
runCommand(`git reset --hard HEAD`);
});

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 1aef7b9

Please sign in to comment.