hunk.code_window:     expect(fileString).toContain(expectedImports);
     });
     it('should add correct imports based on canActivate guardType', async () => {
       const options = { ...defaultOptions, guardType: 'canActivate' };
       const tree = await schematicRunner.runSchematicAsync('guard', options, appTree).toPromise();
       const fileString = tree.readContent('/projects/bar/src/app/foo.guard.ts');
       const expectedImports = `import { CanActivateFn } from '@angular/router';`;
  
hunk.labels: keep keep keep replace replace keep keep keep keep
hunk.after_edit:   it('should add correct imports based on canActivate functional guard', async () => {
       const options = { ...defaultOptions, implements: ['CanActivate'], functional: true };
  
hunk.file_path: packages/schematics/angular/guard/index_spec.ts
hunk.type: replace
file: // @ts-check
  // Protractor configuration file, see link for more information
  // https://github.com/angular/protractor/blob/master/lib/config.ts
  // https://saucelabs.com/platform/platform-configurator
  
  const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter');
  
  const tunnelIdentifier = process.env['SAUCE_TUNNEL_IDENTIFIER'];
  
  /**
   * @type { import("protractor").Config }
   */
  exports.config = {
    sauceUser: process.env['SAUCE_USERNAME'],
    sauceKey: process.env['SAUCE_ACCESS_KEY'],
  
    allScriptsTimeout: 11000,
    specs: ['./src/**/*.e2e-spec.ts'],
  
    multiCapabilities: [
      {
        browserName: 'chrome',
        platform: 'Windows 11',
        version: '105',
        tunnelIdentifier,
      },
      {
        browserName: 'firefox',
        version: '104',
        platform: 'Windows 11',
        tunnelIdentifier,
      },
      {
        browserName: 'firefox',
        version: '91', // Latest Firefox ESR version
        platform: 'Windows 11',
        tunnelIdentifier,
      },
      {
        browserName: 'safari',
        platform: 'macOS 12',
        version: '15',
        tunnelIdentifier,
      },
      {
        browserName: 'safari',
        platform: 'macOS 11.00',
        version: '14',
        tunnelIdentifier,
      },
      {
        browserName: 'MicrosoftEdge',
        platform: 'Windows 11',
        version: '103',
        tunnelIdentifier,
      },
      {
        browserName: 'MicrosoftEdge',
        platform: 'Windows 11',
        version: '104',
        tunnelIdentifier,
      },
    ],
  
    // Only allow one session at a time to prevent over saturation of Saucelabs sessions.
    maxSessions: 1,
  
    SELENIUM_PROMISE_MANAGER: false,
    baseUrl: 'http://localhost:2000/',
    framework: 'jasmine',
    jasmineNodeOpts: {
      showColors: true,
      defaultTimeoutInterval: 30000,
      print: function () {},
    },
  
    onPrepare() {
      require('ts-node').register({
        project: require('path').join(__dirname, './tsconfig.json'),
      });
      jasmine.getEnv().addReporter(
        new SpecReporter({
          spec: {
            displayStacktrace: StacktraceOption.PRETTY,
          },
        }),
      );
    },
  };
  