28 Matching Annotations
  1. Sep 2023
  2. Jun 2023
  3. Sep 2021
  4. Jun 2021
    1. In Jest we are currently running all tests in JSDOM and not in a browser. This implies that certain scenarios cannot be tested or behave differently than in the real application.
    1. Move it to Jest. This potentially requires extending our jsdom mocked browser environment. Move it to RSpec. This will probably require us changing our perspective to a use-case oriented one. We just want to make sure we have the same value coverage.
  5. Dec 2019
    1. Various test runners support using compiled webpack code to drive tests, but may be difficult to integrate with webpack, and Neutrino helps alleviate this
  6. Nov 2019
    1. Tests implementation details a bit (child component props received), but pretty good other than that.

      https://www.robinwieruch.de/react-testing-tutorial, for example, says that is reasonable to do:

      an integration test could verify that all necessary props are passed through from the tested component to a specific child component.

  7. Dec 2018
    1. In this setup, it is common to test app.js and want to either not call the actual math.js functions, or spy them to make sure they’re called as expected.

      key point about what spies are

  8. Nov 2018
    1. Mocking localStorage is optional, but without mocking getComputedStyle your test won’t run, as Angular checks in which browser it executes. We need to fake it.

      key point

    1. Let’s take a couple of steps back, and ask ourselves if we want to test our library and our application at the same time? I don’t think this is what we want, right? We rather want to:test our librarybuild our library; when all the library tests are successfultest our application; when the library is built

      Key point

  9. Sep 2018
  10. May 2015
    1. n the head and the body, in the way of listening

      "Commit this to memory. Head is body." (Infinite Jest, p. 159)

  11. Oct 2013
    1. As to jests. These are supposed to be of some service in controversy. Gorgias said that you should kill your opponents' earnestness with jesting and their jesting with earnestness; in which he was right. Jests have been classified in the Poetics. Some are becoming to a gentleman, others are not; see that you choose such as become you.
    1. Gorgias said that you should kill your opponents' earnestness with jesting and their jesting with earnestness;

      This will only work, though, if your audience looks to you as some sort of authority figure - if you don't seem to know what you're talking about, I think that doing what Gorgias suggests would only make you look foolish.