This is much like Babylon's existing behavior around `expected.json`. The equivalent of babel/babylon#188 is already applied here, to guard against silent failure (and a potential false positive) if a test is accidentally committed without its expected.js.
babel-helper-transform-fixture-test-runner
NOTE: This is an internal Babel module and may not work outside. Use at your own risk.
Usage
import runFixtures from "babel-helper-transform-fixture-test-runner";
import getFixtures from "babel-helper-fixtures";
runFixtures(getFixtures("/User/sebmck/Projects/babel-something/test/fixtures"));