April 18th

Thanks everyone who helped make this a great week! @mquander, @AnshulMalik, @arthur801031, @samjwalker, @jbhoosreddy, @tommai78101, @irfanhudda, @nchevobbe, @AlfonsoML, @jasonLaster, @bomsy

UI

Framework Call Stacks

Bug Fixes

Infrastructure

Testing

ES6


Window Previewing

Before After
window-before window-after

Debugger UI Gap

Before After
gap-before gap-after

Jest Unit Tests

Here’s our first component unit test:

describe("CloseButton", () => {
  it("should call handleClick function", () => {
    const onClick = jest.genMockFunction();
    const wrapper = shallow(new CloseButton({ handleClick: onClick }));

    wrapper.simulate("click");
    expect(onClick).toBeCalled();
  });

  it("should render a button", () => {
    const onClick = jest.genMockFunction();
    const buttonClass = "class";
    const wrapper = shallow(
      new CloseButton({
        handleClick: onClick,
        buttonClass: buttonClass,
        tooltip: "Close button"
      })
    );

    expect(wrapper).toMatchSnapshot();
  });
});