Giter Site home page Giter Site logo

Runnnig tests about play-ng2-webpack2 HOT 2 OPEN

lbialy avatar lbialy commented on August 20, 2024
Runnnig tests

from play-ng2-webpack2.

Comments (2)

lbialy avatar lbialy commented on August 20, 2024

This is new, possibly one of packages introduced breaking changes. I'll try to check what's going on tomorrow.

from play-ng2-webpack2.

DPGrev avatar DPGrev commented on August 20, 2024

Hi, I encountered the same error as you and was able to fix it by editing the lib field in ui/src/tsconfig.spec.json to:

"lib": [
  "es2016",
  "dom"
]

Since I updated to angular 4.2.4 and also updated the supporting packages I also got 2 other errors when running sbt test. These can be fixed in the following way.:

Error 1

[00:27:47] I/launcher - Running 1 instances of WebDriver
[00:27:47] I/direct - Using ChromeDriver directly...
[00:27:47] E/direct - Error code: 135
[00:27:47] E/direct - Error message: Could not find update-config.json. Run 'webdriver-manager update' to download binaries.
[00:27:47] E/direct - Error: Could not find update-config.json. Run 'webdriver-manager update' to download binaries.

This error can be fixed by adding the following the scripts in the package.json:

"scripts": {
  "webdriver-update": "webdriver-manager update"
}

and then running npm run webdriver-update in the ui folder.

Error 2

[01:51:40] I/launcher - Running 1 instances of WebDriver
[01:51:40] I/direct - Using ChromeDriver directly...
[01:51:42] E/launcher - Error: TSError: ⨯ Unable to compile TypeScript
e2e/app.e2e-spec.ts (12,45): Argument of type '"IT WORKS! - SASS + TS = <3"' is not assignable to parameter of type 'Expected<Promise<string>>'. (2345)

This error is an ongoing problem see: DefinitelyTyped/DefinitelyTyped#15215

A temporary fix is to add <any> after expect in ui/e2e/app.e2e-spec.ts:

expect<any>(page.getParagraphText()).toEqual('IT WORKS! - SASS + TS = <3');

However there probably are more elegant fixes for this.

from play-ng2-webpack2.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.