Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No updates until Jan 2025 #10487

Open
satanTime opened this issue Nov 16, 2024 · 9 comments
Open

No updates until Jan 2025 #10487

satanTime opened this issue Nov 16, 2024 · 9 comments

Comments

@satanTime
Copy link
Member

I guess you all noticed no active development of the library for several years.

It's going to change from January 2025.

Thanks to all who was patient and hasn't lost trust in ng-mocks.

@satanTime satanTime pinned this issue Nov 16, 2024
@JPtenBerge
Copy link

Not to add to any stress, but will Angular 19 get a relatively quick version support release before that time by any chance?

@jahusa02
Copy link

Hope so too...

@evtk
Copy link

evtk commented Nov 20, 2024

Thanks for the update @satanTime. I still use ng-mocks on daily basis as it abstracts so much of the unit test fuzz.

I came here after watching the updates for NG19 and noticing how there is getting more and more attention to implementing signals. The simple fact is that ng-mocks currently prevents me from starting to use the signal input api for instance instead of the regular Input decorator.

So really looking forward to updates on that part!

@JPtenBerge
Copy link

JPtenBerge commented Nov 20, 2024

@evtk ng-mocks hasn't prevented me from using signal inputs. ng-mocks simply doesn't provide any help in that area.

export class MyStepComponent {
    step = input.required<Step>();
beforeEach(() => {
    TestBed.configureTestingModule({
        providers: [MockProvider(...), MockProvider(...)],
        imports: [MyStepComponent],
    });

    fixture = TestBed.createComponent(MyStepComponent);
    sut = fixture.componentInstance;
    fixture.componentRef.setInput('step', currentStep);
});

I'm not using MockRender() though, is that what you're using?

@GipHub123
Copy link

@evtk
I can confirm that input signals work with the current version of ngMocks. However, as far as I know, certain features, such as ContentChildren and ViewChild, are not yet supported.
#8895

@satanTime
Copy link
Member Author

Hi all.

My main concern to release support of new versions is that my knowledge of changes in v18 and v19 is none, and I prefer to force developers to notice incompatibility with v19 and install ng-mocks with -f flag, so they understand what they do and what to expect, instead of saying that the lib works with v19.

Unfortunately, until Jan I don't have time at all due to private hassle.

@evtk
Copy link

evtk commented Nov 20, 2024

@evtk ng-mocks hasn't prevented me from using signal inputs. ng-mocks simply doesn't provide any help in that area.

export class MyStepComponent {
    step = input.required<Step>();
beforeEach(() => {
    TestBed.configureTestingModule({
        providers: [MockProvider(...), MockProvider(...)],
        imports: [MyStepComponent],
    });

    fixture = TestBed.createComponent(MyStepComponent);
    sut = fixture.componentInstance;
    fixture.componentRef.setInput('step', currentStep);
});

I'm not using MockRender() though, is that what you're using?

Yeah definitely went for being Pro and using MockRender everywhere in my tests :|

@JPtenBerge
Copy link

JPtenBerge commented Nov 21, 2024

@satanTime Understood, thanks for the response. And good luck on your private hassles.

@jahusa02
Copy link

Will you still be able to review PRs? If yes, I will try to at least fix the logic behind standalone :) In v19 the default flipped to true. If its possible to make this change backwards compatible I guess it wont be a new Major and so not affecting version < 19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants