Skip to content

How to use overrideModule ? #302

Closed
Closed
@maxime1992

Description

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ ] Feature request
[x] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

I need to mock MatIconModule and can't

Expected behavior

I'd like to be able to do the following:

TestBed.configureTestingModule({
  // ...
})
.overrideModule(MatIconModule, {
  // ...
})

But with spectator.

What is the motivation / use case for changing the behavior?

Have all the native capabilities of TestBed and being able to override a module.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions