Skip to content

Angular/core 11.0.3 E2E tests error #40221

Closed
@BrunoBeraudPW

Description

@BrunoBeraudPW

🐞 bug report

Hello !

Since 11.0.3 angular/core version, E2E tests are not working on a project with the default configuration.

Affected Package

angular/core

Is this a regression?

Yes, error are appearing since angular/core 11.0.3, it was working in previous version

Description

When executing "ng e2e" cmd.

🔬 Minimal Reproduction

https://github.com/BrunoBeraudPW/issue-angular-11.0.3

It's a default project angular 11.0.3 where I have updated all packages to their latest version

I have updated "manually" all packages because the "ng new" cmd was creating an angular 10 app and so I was thinking that maybe the problem came because of the others packages.

But even when I have just updated angular packages, the error was still here

🔥 Exception or Error

When using fakeAsync :


Failed: zone-testing.js is needed for the async() test helper but could not be found.
                Please make sure that your environment includes zone.js/dist/zone-testing.js

Several errors in selenium-webdriver libs (promise)


 C:\dev-phoenix\1-Photoweb-Forks\test\node_modules\selenium-webdriver\lib\promise.js:3067:27
              this.pending_ = {task: task, q: this.subQ_};
              task.promise.queue_ = this;
              result = this.subQ_.execute_(task.execute);
                                  ~
              this.subQ_.start();
            } catch (ex) {

Several errors in internal/modules/cjs/loader.js


internal/modules/cjs/loader.js:955:30
        jasmine-spec-reporter: unable to open 'internal/modules/cjs/loader.js'
        Error: ENOENT: no such file or directory, open 'internal/modules/cjs/loader.js'

It seem to not recognize jasmine functions, it underlines in red the name of the main functions describe, it, fit, etc., like if it didn't include test.ts and its import 'zone.js/dist/zone-testing';
image

🌍 Your Environment

Angular Version:


@angular-devkit/architect       0.1100.3
@angular-devkit/build-angular   0.1100.3
@angular-devkit/core            11.0.3
@angular-devkit/schematics      11.0.3
@schematics/angular             11.0.3
@schematics/update              0.1100.3
rxjs                            6.6.3
typescript                      4.0.5

Thank !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions