Charlie Harding

Results 22 comments of Charlie Harding

Hardcoding this data means the extension will need to be updated every time the highest/lowest is updated, so someone will need to watch this too.

I had a brief test with this, and found that `menu bar item "control center" doesn’t work on my en-GB computer (it’s called "control centre"), so instead I went with...

The 2 refers to the menu position from the right: I think the clock was 1. But fair enough about not integrating it: just having a bash one-liner works well...

@devversion I’ve got this working using the following NgElementStrategy: ```ts /** * Factory that creates new SignalComponentNgElementStrategy instance. Gets the component factory with the * constructor's injector's factory resolver and...

As part of my sanitisation code using the `xss` library, my definition of IFilterXSSOptions (second argument to `xss` function) includes a safeAttrValue override, in which I replace `href` and `src`...

As an alternative workaround, the snippet should work for getting backticks to work in verbatim or lstlisting environments, and for `\textasciitilde` to work in any other environment. This seems to...

@michaelficarra please could you have a look at this?

Temporary workaround: use `MockBuilder#replace` ```ts @Component({ selector: 'app-nested', standalone: true, template: ``, }) class NestedComponentStub { public readonly anchor = signal(new ElementRef(undefined)).asReadonly(); public readonly name = input.required(); } describe('my sandbox',...

@satanTime this seems to be a better fix: simply remove the view queries, as they’ll always be null anyway https://github.com/help-me-mom/ng-mocks/blob/282cbf0a6d1bb3ae78c6c8fb48f753bb02ca8d33/libs/ng-mocks/src/lib/common/decorate.queries.ts#L22-L39 ```diff const generateFinalQueries = (queries: { [key: string]: Query; }):...

Hi @satanTime, what’s the effect for other versions? Only `__prop_metadata__` is affected, which is not a documented property. Additionally, viewChild would always be falsy for mocked components anyway, because mocked...