Skip to content

PLATFORM_DIRECTIVES not defined in tests #5585

Closed

Description

@alxhub

createTestInjector uses bindings that are missing PLATFORM_DIRECTIVES.

This means that if a user defines a component that uses NgIf for example but doesn't specify an explicit dependency via @Component({directives}), it will work in the app but fail in tests.

Activity

  1. added this to the beta.0 milestone on Dec 3, 2015
  2. juliemr commented on Dec 3, 2015

    @juliemr
    Member

    See also #5351

  3. modified the milestones: , beta.0 on Dec 3, 2015
  4. pkozlowski-opensource commented on Dec 3, 2015

    @pkozlowski-opensource
    Member

    This is duplicate of #5433

  5. juliemr commented on Dec 17, 2015

    @juliemr
    Member

    Can I close this as a dupe? There's a fix design in #5351 - please continue discussion there! :)

  6. usernamealreadyis commented on Dec 19, 2015

    @usernamealreadyis
  7. added a commit that references this issue on Jan 13, 2016
    b0cebdb
  8. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  9. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions