Skip to content

Commit 849aeab

Browse files
committed
refactor: fix tests int
1 parent b74a350 commit 849aeab

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

packages/nx-plugin/src/generators/configuration/generator.int.test.ts

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,6 @@ describe('configurationGenerator', () => {
2626
tree.delete(testProjectName);
2727
});
2828

29-
it('should generate a project target and config file', async () => {
30-
await configurationGenerator(tree, {
31-
project: testProjectName,
32-
});
33-
34-
const projectConfiguration = readProjectConfiguration(
35-
tree,
36-
testProjectName,
37-
);
38-
39-
expect(projectConfiguration.targets?.[DEFAULT_TARGET_NAME]).toEqual({
40-
executor: `${PACKAGE_NAME}:cli`,
41-
});
42-
});
43-
4429
it('should skip config creation if skipConfig is used', async () => {
4530
await configurationGenerator(tree, {
4631
project: testProjectName,
@@ -55,20 +40,6 @@ describe('configurationGenerator', () => {
5540
expect(loggerInfoSpy).toHaveBeenCalledWith('Skip config file creation');
5641
});
5742

58-
it('should skip target creation if skipTarget is used', async () => {
59-
await configurationGenerator(tree, {
60-
project: testProjectName,
61-
skipTarget: true,
62-
});
63-
64-
const projectConfiguration = readProjectConfiguration(
65-
tree,
66-
testProjectName,
67-
);
68-
expect(projectConfiguration.targets).toBeUndefined();
69-
expect(loggerInfoSpy).toHaveBeenCalledWith('Skip adding target to project');
70-
});
71-
7243
it('should skip formatting', async () => {
7344
await configurationGenerator(tree, {
7445
project: testProjectName,

0 commit comments

Comments
 (0)