Raphael Luba

Results 43 comments of Raphael Luba

I had the same problem. You can work around it by using `passPerPreset` to run `iife-wrap` before the `es2015` transforms: ``` { passPerPreset: true, presets: [ { plugins: ['babel-plugin-iife-wrap'], },...

Two years later and I’m finally reacting. :-/ Sorry. @thlorenz: Yeah, I agree that having multiple modules doing almost identical things is not great. I’d love to merge this into...

Hey! For me it’s often useful to see the line of the assert that failed. But you could add an option for suppressing the stack trace, if it bothers you.

Hmm… interesting idea. The general problem with expressions like `x.querySelector('option').value.length` is that you just get a `TypeError` when one of the intermediate properties doesn’t exist or has a different type...

And just as a side note: You can use `hasSize()` to simplify your (and my) example and get better error descriptions: ```JavaScript __.assertThat(element.querySelector('option'), __.hasProperties({ value: __.hasSize(__.greaterThan(3)), }); ```

I’m "sorry" to inform you that this feature is [already implemented](https://github.com/rluba/hamjest/blob/f54f4381c54527c9f1afeb58e714cfb5d681f671/lib/matchers/IsObjectWithProperties.js#L94). 😊 The following should work as expected: ```JavaScript __.assertThat(element, __.hasProperty('value.length', __.greaterThan(3)); ``` I just noticed that I had never...

Thank you for the suggestion. Sure, give it a try! I welcome such PRs.

Hi Alex, thank you for the pull request and sorry for the delay. Looks great, but I think your `hasProperties.getDiffItems` breaks if `hasProperties` is a [promising matcher](https://github.com/rluba/hamjest/wiki/Hamjest-and-Promises#promising-matchers) due to promising...

Good idea. I always cringe when I have to use the `apply` pattern for `allOf`, `anyOf` or (most commonly) `contains`. But for the latter, it would create a weird edge...

I'll implement this feature for `anyOf` / `allOf`. Above-mentioned edge case does not affect them since they demand matchers as arguments. But I'm not sure how to implement it for...