Skip to content

Commit 03f0e84

Browse files
committed
refactor: fix e2e tests
1 parent 4e88923 commit 03f0e84

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

e2e/nx-plugin-e2e/tests/generator-configuration.e2e.test.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('nx-plugin g configuration', () => {
3535
await teardownTestFolder(testFileDir);
3636
});
3737

38-
it('should generate code-pushup.config.ts file and add target to project.json', async () => {
38+
it('should generate code-pushup.config.ts file', async () => {
3939
const cwd = path.join(testFileDir, 'configure');
4040
await materializeTree(tree, cwd);
4141

@@ -64,22 +64,7 @@ describe('nx-plugin g configuration', () => {
6464
'NX Generating @code-pushup/nx-plugin:configuration',
6565
);
6666
expect(cleanedStdout).toMatch(/^CREATE.*code-pushup.config.ts/m);
67-
expect(cleanedStdout).toMatch(/^UPDATE.*project.json/m);
68-
69-
const projectJson = await readFile(
70-
path.join(cwd, 'libs', project, 'project.json'),
71-
'utf8',
72-
);
7367

74-
expect(JSON.parse(projectJson)).toStrictEqual(
75-
expect.objectContaining({
76-
targets: expect.objectContaining({
77-
'code-pushup': {
78-
executor: '@code-pushup/nx-plugin:cli',
79-
},
80-
}),
81-
}),
82-
);
8368
await expect(
8469
readFile(
8570
path.join(cwd, 'libs', project, 'code-pushup.config.ts'),

0 commit comments

Comments
 (0)