Fabrizio Castellarin

Results 10 comments of Fabrizio Castellarin

see also https://github.com/leafo/lessphp/issues/491

Thanks @masterbater for the answer, but that looks like a different issue, since cra does provide (some of) the env variables [through webpack's `DefinePlugin`](https://github.com/facebook/create-react-app/blob/main/packages/react-scripts/config/webpack.config.js#L646-L651). Indeed `process.env.NODE_ENV` does work, the issue...

I just tried with a [new repo](https://github.com/EnoahNetzach/jest-duplicate-manual-mock), using two versions of jest (`^15.0.0` and `^17.0.0`) and, although the latter gives the warning, the test behaves as expected. @ColCh I don't...

@cpojer if FB code has the restriction on the uniqueness of the names, using the full path as a key for the map of mocks shouldn't bring problems. Am I...

The two solutions I see are: - modify [`getMockName`](https://github.com/facebook/jest/blob/master/packages/jest-haste-map/src/index.js#L98) to accomodate the option to use the basename or the full path - remove that function altogether

In order: - Let's fix manual mocks in Jest! HURRAY :smile: :tada: - Let's namespace haste modules and limit them to certain folders/regex whatever. - Make sure that the current...

I fully agree with `"haste_modules"`. We personally don't use automocking that much, so I can't say what's better, my wild guess is that the `"autoMockingPaths"` var could be useful and...

What I meant is: what if you have an `npm install`ed module `x` and later, deeper in your codebase define a module `x` in a nested `node_modules` folder? The naming...

I should be able to work on this no sooner than the next weekend.

Same over here, on Chrome: ``` Unhandled Rejection (Error) unable to access image data: Error: unable to access local image data: SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas...