hunk.code_window:     return { success: false };
     }
     // Create output directory if needed
     try {
       await fs.mkdir(outputPath, { recursive: true });
     } catch (e) {
       assertIsError(e);
       context.logger.error('Unable to create output directory: ' + e.message);
       return { success: false };
     }
     // Generate index HTML file
     if (options.index) {
       const entrypoints = generateEntryPoints({
  
hunk.labels: keep keep keep replace replace replace replace replace replace replace replace replace replace keep keep keep
hunk.file_path: packages/angular_devkit/build_angular/src/builders/browser-esbuild/index.ts
hunk.type: replace
file: import { join } from 'path';
  import { ng } from '../../../utils/process';
  import { expectFileToExist, expectFileToMatch } from '../../../utils/fs';
  
  export default async function () {
    // Does not create a sub directory.
    const guardDir = join('src', 'app');
  
    await ng('generate', 'guard', 'load', '--implements=CanLoad', '--implements=CanDeactivate');
    await expectFileToExist(guardDir);
    await expectFileToExist(join(guardDir, 'load.guard.ts'));
    await expectFileToMatch(
      join(guardDir, 'load.guard.ts'),
      /implements CanLoad, CanDeactivate<unknown>/,
    );
    await expectFileToExist(join(guardDir, 'load.guard.spec.ts'));
    await ng('test', '--watch=false');
  }
  