Tanguy Krotoff
Tanguy Krotoff
> What's the real-world use-case for this? Convert all null values from a REST API or a JSON file to undefined and vise versa because of https://github.com/sindresorhus/meta/discussions/7 Illustration: https://github.com/apollographql/apollo-client/issues/2412
I've run your patch and it is a very good! Thanks. As for the pull request, I did not disable anything. I've already gotten several [pull requests](https://github.com/tkrotoff/jquery-simplecolorpicker/pulls?direction=desc&page=1&sort=created&state=closed) I'm wondering if...
After some investigations, I understand why. ``` TypeScript require.extensions[".ts"] = function() { console.log('process.cwd() inside require.extensions[".ts"]', process.cwd()); // Works } console.log('process.cwd() outside require.extensions[".ts"]', process.cwd()); // Fails ``` You need to call...
@pspeter3 Obviously there is no stack trace: it is not a crash, just `process.cwd()` that does not contain the proper path in some cases. Here the solution: move `defaultCompilerOptions` inside...
I've patched my fork: https://github.com/tkrotoff/typescript-register/commit/ec46ab007a924297e40a56af00b012385fc15ae8#diff-ed009b6b86b017532ef0489c77de5100 Quick and dirty. I guess you'll implement a clean solution with a unit test for it.
No more whatwg-fetch, node-fetch... thx to Node.js >= 18: ```TypeScript // FixJSDOMEnvironment.ts import JSDOMEnvironment from 'jest-environment-jsdom'; // https://github.com/facebook/jest/blob/v29.4.3/website/versioned_docs/version-29.4/Configuration.md#testenvironment-string export default class FixJSDOMEnvironment extends JSDOMEnvironment { constructor(...args: ConstructorParameters) { super(...args); //...
How to force Jest/jsdom to use [Node.js `structuredClone` implementation](https://github.com/nodejs/node/commit/d0a898681f) (requires Node.js >= 17.0.0): ```TypeScript // FixJSDOMEnvironment.ts import JSDOMEnvironment from 'jest-environment-jsdom'; // https://github.com/facebook/jest/blob/v29.4.3/website/versioned_docs/version-29.4/Configuration.md#testenvironment-string export default class FixJSDOMEnvironment extends JSDOMEnvironment { constructor(...args:...
@urbenlegend I don't know I don't use create-react-app
Sorry for the late answer. I guess you are talking about when `picker: false` If you specify a `max-width` for .simplecolorpicker.inline, then the colors will be over multiple lines if...
FYI The commit that did this change: https://github.com/jsdom/jsdom/commit/0c8eb3a35973c7e95af9b1bdc81e5af2cc629924