Skip to content

Commit

Permalink
fix(angular): add pr suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
  • Loading branch information
Coly010 and leosvelperez committed Oct 11, 2022
1 parent 2c5064e commit 264b582
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Expand Up @@ -243,9 +243,7 @@ describe('workspace', () => {

it('should set the default project correctly', async () => {
await migrateFromAngularCli(tree, {});
expect(readJson(tree, 'nx.json').defaultProject).toMatchInlineSnapshot(
`"myApp"`
);
expect(readJson(tree, 'nx.json').defaultProject).toBe('myApp');
});

it('should create nx.json', async () => {
Expand Down
Expand Up @@ -38,9 +38,7 @@ export async function migrateFromAngularCli(
const projects = getAllProjects(tree);
const options = normalizeOptions(tree, rawOptions, projects);

const defaultProject = projects.apps.find((app) =>
app.config.sourceRoot?.startsWith('src')
);
const defaultProject = projects.apps.find((app) => app.config.root === '');

if (options.preserveAngularCliLayout) {
addDependenciesToPackageJson(
Expand Down

0 comments on commit 264b582

Please sign in to comment.