index.js 253 B

12345678910
  1. import react from "../lib";
  2. describe("react preset", () => {
  3. it("does throw clear error when no options passed for Babel 6", () => {
  4. expect(() => {
  5. react({ version: "6.5.0" });
  6. }).toThrow(Error, /Requires Babel "\^7.0.0-0"/);
  7. });
  8. });