Skip to content

Commit

Permalink
fix(e2e): nx-plugin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Apr 11, 2024
1 parent befdf04 commit 7ac82a5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions e2e/nx-plugin-e2e/tests/init.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ describe('nx-plugin g init', () => {
it('should run init generator and execute correctly', async () => {
const { code, stderr } = await executeProcess({
command: 'nx',
args: ['g', './dist/packages/nx-plugin:init examples-react-todos-app'],
args: [
'g',
'./dist/packages/nx-plugin:init examples-react-todos-app --dryRun',
],
observer: { onStdout: console.info },
});

Expand All @@ -18,12 +21,13 @@ describe('nx-plugin g configuration', () => {
it('should run init generator on react-todos-app', async () => {
const { code, stderr } = await executeProcess({
command: 'nx',
args: ['g', './dist/packages/nx-plugin:init examples-react-todos-app'],
args: [
'g',
'./dist/packages/nx-plugin:init examples-react-todos-app --dryRun',
],
});

expect(code).toBe(0);
expect(stderr).toBe('');

// add code-pushup.config.ts
expect(stderr).toContain('dryRun');
});
});

0 comments on commit 7ac82a5

Please sign in to comment.