diff --git a/packages/plugin/src/generators/plugin/plugin.spec.ts b/packages/plugin/src/generators/plugin/plugin.spec.ts index 63a9e2b75fd37..6b36c8b1831eb 100644 --- a/packages/plugin/src/generators/plugin/plugin.spec.ts +++ b/packages/plugin/src/generators/plugin/plugin.spec.ts @@ -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'); }); }); @@ -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'); }); }); });