Skip to content

AOT Unit Tests: Need overrideTemplate support in AOT mode #19815

Closed

Description

@vikerman

In order to help developers switch to AOT during unit testing we need to make it easier to mock child components.

The way decided would be to have a TestBed.overrideTemplate(Component, newTemplate) function that would JIT compile a new template for an existing AOT-ed component.

Activity

  1. added
    area: testingIssues related to Angular testing features, such as TestBed
    on Oct 20, 2017
  2. removed their assignment
    on Oct 26, 2017
  3. self-assigned this
    on Oct 28, 2017
  4. added a commit that references this issue on Oct 30, 2017
    f29260f
  5. assigned and unassigned on Nov 1, 2017
  6. tbosch commented on Nov 1, 2017

    @tbosch
    Contributor

    See my PR #19996 which @vicb is taking over.

  7. added
    featureLabel used to distinguish feature request from other issues
    on Nov 6, 2017
  8. IgorMinar commented on Nov 17, 2017

    @IgorMinar
    Contributor

    this was fixed by #20224

  9. angular-automatic-lock-bot commented on Sep 12, 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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimearea: testingIssues related to Angular testing features, such as TestBedfeatureLabel used to distinguish feature request from other issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions