dillon1000/react
Commit
Browse files [be] make evaluator and worker easier to debug in sprout
--- jsdom and other libraries seem to cause jest workers to exit with `forceExit:true`. Not sure what option I set (or global I've overwritten) but console logs aren't flushed as a result, making debugging a bit confusing. This PR: - Moves some code from `eval(...)` to a typechecked real js function. I always had trouble debugging the `eval`ed code, so smaller code snippet is better here. - waits for jest workers to end before exiting
Changed paths7 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/repro-hoisting-variable-collision.expect.md ModifiedM compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/repro-hoisting-variable-collision.js ModifiedM compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/repro-hoisting.expect.md ModifiedM compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/repro-hoisting.js ModifiedM compiler/packages/sprout/src/SproutTodoFilter.ts ModifiedM compiler/packages/sprout/src/runner-evaluator.ts ModifiedM compiler/packages/sprout/src/runner.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…