Robert Main

Results 74 comments of Robert Main

Is this the right place/issue to ask about support for mocking out calls to `import`ed dependencies like `fs` etc.?

@jamlen that's fine but it looks like you're using `require()`, rather than `import` which is what I was asking :) I know it works with `require` - what I was...

@jamlen so you got `rewire` to work with `import` then?

@jamlen The problem I'm running up against at the moment with this in TypeScript is that it seems I have to load the thing I'm testing with rewire....which doesn't return...

Same here. ```ts import 'reflect-metadata'; const Searchable = (target: Object, property: string) => { Reflect.defineMetadata('searchable', true, target, property); console.log(target);//

@igorzg I'm not sure that adding another npm package is really the solution here. More broadly, however - the solution ended up being: ```patch - console.log(target) + console.log(target.constructor) ```

> You can easyly do this using a helper. 😉 Op do 21 dec 2023 22:17 schreef Blueman2 ***@***.***>: > […](#) > I have a new LG refrigerator which shows...

Like many others here - I have an LG washer which captures energy usage data (as seen in the mobile app) but I don't see it in HomeAssistant. Is there...