Giter VIP home page Giter VIP logo

Comments (3)

ben-kn-app avatar ben-kn-app commented on May 29, 2024

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.

RomainFallet avatar RomainFallet commented on May 29, 2024

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.

ben-kn-app avatar ben-kn-app commented on May 29, 2024

Thanks @RomainFallet

It works now! thanks for your fast and good reply!

from ionic-workflow-guide.

Related Issues (2)

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.