Skip to content

Commit 7d36180

Browse files
author
John Doe
committed
refactor: wip
1 parent 798363f commit 7d36180

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

e2e/nx-plugin-e2e/tests/plugin-create-nodes.e2e.test.ts

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -103,29 +103,6 @@ describe('nx-plugin', () => {
103103
});
104104
});
105105

106-
it('should consider plugin option bin in configuration target', async () => {
107-
const cwd = path.join(testFileDir, 'configuration-option-bin');
108-
registerPluginInWorkspace(tree, {
109-
plugin: '@code-pushup/nx-plugin',
110-
options: {
111-
bin: 'XYZ',
112-
},
113-
});
114-
await materializeTree(tree, cwd);
115-
116-
const { code, projectJson } = await nxShowProjectJson(cwd, project);
117-
118-
expect(code).toBe(0);
119-
120-
expect(projectJson.targets).toStrictEqual({
121-
'code-pushup--configuration': expect.objectContaining({
122-
options: {
123-
command: `nx g XYZ:configuration --project="${project}"`,
124-
},
125-
}),
126-
});
127-
});
128-
129106
it('should NOT add config targets dynamically if the project is configured', async () => {
130107
const cwd = path.join(testFileDir, 'configuration-already-configured');
131108
registerPluginInWorkspace(tree, '@code-pushup/nx-plugin');
@@ -199,8 +176,9 @@ describe('nx-plugin', () => {
199176
// Nx command
200177
expect(cleanStdout).toContain('nx run my-lib:code-pushup');
201178
// Run CLI executor
202-
expect(cleanStdout).toContain('Command: npx @code-pushup/cli');
203-
expect(cleanStdout).toContain('--dryRun --verbose');
179+
expect(cleanStdout).toContain('Command: <CWD> $ npx @code-pushup/cli');
180+
expect(cleanStdout).toContain('--verbose');
181+
expect(cleanStdout).toContain('--dryRun ');
204182
});
205183

206184
it('should consider plugin option bin in executor target', async () => {

0 commit comments

Comments
 (0)