dillon1000/react

Commit

Build infra for tracking dev-specific failures (#8228)

I'll plan to change all of our console.error and component-tree expects to expectDev. It's a little annoying that we need to make sure tests don't throw (see my change to normalizeCodeLocInfo) but any alternative would seem to require two separate test runs or a much more cumbersome syntax.
Browse files
Changed paths7 files
First-parent comparison
M .eslintrc.js ModifiedM package.json ModifiedM scripts/fiber/record-tests ModifiedM scripts/fiber/tests-failing.txt ModifiedA scripts/fiber/tests-passing-except-dev.txt AddedM scripts/jest/test-framework-setup.js ModifiedM src/renderers/shared/stack/reconciler/__tests__/ReactChildReconciler-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…