Skip to content

Commit

Permalink
feat(nx-plugin): improved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gperdomor committed Dec 3, 2024
1 parent e96dee7 commit 47ddfdd
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions packages/plugin/src/generators/plugin/plugin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,13 @@ describe('NxPlugin Plugin Generator', () => {
expect(tree.exists(path)).toBeTruthy()
);

expect(
readProjectConfiguration(tree, 'my-plugin').targets.test
).toBeDefined();
const projectTargets = readProjectConfiguration(
tree,
'my-plugin'
).targets;

expect(projectTargets.test).toBeDefined();
expect(projectTargets.test?.executor).toEqual('@nx/jest:jest');
});
});

Expand All @@ -216,9 +220,13 @@ describe('NxPlugin Plugin Generator', () => {
expect(tree.exists(path)).toBeTruthy()
);

expect(
readProjectConfiguration(tree, 'my-plugin').targets.test
).toBeDefined();
const projectTargets = readProjectConfiguration(
tree,
'my-plugin'
).targets;

expect(projectTargets.test).toBeDefined();
expect(projectTargets.test?.executor).toEqual('@nx/vite:test');
});
});
});
Expand Down

0 comments on commit 47ddfdd

Please sign in to comment.