lathonez / lathonez.github.io Goto Github PK
View Code? Open in Web Editor NEWLathonez' blog
Home Page: http://lathonez.com
License: MIT License
Lathonez' blog
Home Page: http://lathonez.com
License: MIT License
Hi there,
I followed your tutorial and everything worked fine. The e2e tests still work, but as of today (or at least I saw it today), the unit test part results in the following message:
It seems like you're using a project generated using an old version of the Angular CLI.
The latest CLI now uses webpack and has a lot of improvements including a simpler
workflow, a faster build, and smaller bundles.To get more info, including a step-by-step guide to upgrade the CLI, follow this link:
https://github.com/angular/angular-cli/wiki/Upgrading-from-Beta.10-to-Beta.14
The app I'm trying that on was created yesterday. Do you have any ideas what the problem might be?
Steps
ionic start sampleApp tutorial --v2
npm test
The tests will run but the file coverage.lcov will be empty.
When following the Unit Testing an Ionic2 project tutorial, I ran into an error running the simple test.
Error: No provider for GestureController!
I fixed this by adding the following to my test.ts
file:
import { App, MenuController, NavController, Platform, Config, Keyboard, Form, IonicModule, GestureController } from 'ionic-angular';
...
providers: [
App, Platform, Form, Keyboard, MenuController, NavController, GestureController,
{provide: Config, useClass: ConfigMock}
]
I'd love to know more about why this happened. My project was generated using the ionic-cli after the release of rc3.
"ionic-angular": "2.0.0-rc.3"
"angular-cli": "^1.0.0-beta.22-1"
"karma": "1.3.0"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.