Benjamin
Benjamin
I think `ts-jest` is using `tsc` which usually changes the variables from `const/let` to `var` (and `var` variables are hoisted to the top of the file). But this is a...
@kylemh as mentioned above, I don't think that this code would work either with just jest (and babel) `jest.mock` isn't meant to be used with code defined out of its...
Maybe, I think it's related to https://github.com/swc-project/jest/issues/14#issuecomment-996890800. But according to jest's doc, your code isn't supposed to work.
Btw, when I inject your code in [babel repl](https://babeljs.io/repl#?browsers=chrome%2080&build=&builtIns=usage&corejs=3.6&spec=false&loose=false&code_lz=MYewdgzgLgBATgUwA4BsCGwEFkTANYwC8MAVgtAHQBmYAFLQJREB8MtA3jFAJ5IIBcMAORCYAXwYMA3ACgylALa48tIaDBgEwKAgAmAWkQYohkAFcdcIQBo2TQqw4yY8ZOkyDEqDNmXWZEtJAA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=true&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env&prettier=true&targets=&version=7.17.1&externalPlugins=babel-plugin-jest-hoist%4027.4.0&assumptions=%7B%7D) with the plugin `jest-hoist`, it throws this error:  But it doesn't throw with the following code (because variables starting in...
I'm a little bit confused about how jest is handling the `mock*` variables: Here is how babel + babel-plugin-jest-hoist handles: ```js const mockReplace = jest.fn(() => ({ type: '' }));...
Block comments aren't highlighted
I've created a MR #187 for this issue
@dougwilson, why do you need to maintain old version of node? Express-generator is here to help developers to generate new express repositories. If someone generated its own repo for node...
If the fragment is within the query, it should work
I feel like having a relaxed syntax for import statements could really help the community as a whole: A lot of different bundlers have different and custom syntaxes to be...