Skip to content

Commit

Permalink
fix(nx-plugin): move tests from 'tests' to 'src' directory (#19866)
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Nov 3, 2023
1 parent 6f8682a commit 0f7363e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/plugin/src/generators/e2e-project/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('NxPlugin e2e-project Generator', () => {

expect(tree.exists('apps/my-plugin-e2e/tsconfig.json')).toBeTruthy();
expect(
tree.exists('apps/my-plugin-e2e/tests/my-plugin.spec.ts')
tree.exists('apps/my-plugin-e2e/src/my-plugin.spec.ts')
).toBeTruthy();
});

Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/src/generators/e2e-project/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async function addJest(host: Tree, options: NormalizedSchema) {
addProjectConfiguration(host, options.projectName, {
root: options.projectRoot,
projectType: 'application',
sourceRoot: `${options.projectRoot}/tests`,
sourceRoot: `${options.projectRoot}/src`,
targets: {},
implicitDependencies: [options.pluginName],
});
Expand Down

0 comments on commit 0f7363e

Please sign in to comment.