Comments (3)
Installed ionic-mocks and added import {ConfigMock } from 'ionic-mocks'; Seems to do the trick.
Unfortunately after it also asks for PlatformMock (which is also in ionic-mocks), but after that it requests 'Error: No provider for DomController!' Which makes me think I am not thinking up the right alley.
Any pointers are appreciated.
from ionic-workflow-guide.
Hello,
I'm glad you found this repo helpful.
I did not have the time to update it yet for the newest version of Ionic, but I'm planning to do it soon.
I've just updated the code in the README. You have to forget about the Config, the DomController and others things like that, that are Ionic core functionalities we don't know about and we don't want to have to care about in our tests.
To not have to bother with this and to work with lazy loading, we just have to Import the root Ionic module in each testing module.
We also have to import the module of the page or the component we are testing, that way, we are sure that our tests use all the dependencies our true page or component is using.
from ionic-workflow-guide.
Thanks @RomainFallet
It works now! thanks for your fast and good reply!
from ionic-workflow-guide.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic-workflow-guide.