# JSJ 341: Testing in JavaScript with Gil Tayar

- Artist: [Gil](https://livesetdb.com/dj/gil)
- Date: 2018-11-27
- Page: https://livesetdb.com/set/gil-jsj-341-testing-in-javascript-with-gil-tayar-2018-11-27

## Listen

- [archive.org](https://archive.org/download/kpwlnsnto1pw1rnm1ppuolrbyrwkc1rlg7ddy3lx/JSJ_341_Testing_in_JavaScript_with_Gil_Tayar.mp3)
- [archive.org](https://archive.org/details/kpwlnsnto1pw1rnm1ppuolrbyrwkc1rlg7ddy3lx)

## Tracklist

1. [00 - Advertisement: KENDO UI](https://livesetdb.com/track/00-advertisement-kendo-ui)
2. [Chuck: Our panel is AJ, Aimee, myself - and our special guest is Gil Tayar. Tell us why you are famous!](https://livesetdb.com/track/chuck-our-panel-is-aj-aimee-myself-and-our-special-guest-is-gil-tayar-tell-us)
3. [13 - Gil talks about where he resides and his background.](https://livesetdb.com/track/13-gil-talks-about-where-he-resides-and-his-background)
4. [27 - Chuck: What is the landscape like now with testing and testing tools now?](https://livesetdb.com/track/27-chuck-what-is-the-landscape-like-now-with-testing-and-testing-tools-now)
5. [27 - Aimee.](https://livesetdb.com/track/27-aimee)
6. [22 - Aimee: I totally agree and I could go on and on and on.](https://livesetdb.com/track/22-aimee-i-totally-agree-and-i-could-go-on-and-on-and-on)
7. [55 - Guest gives advice to panelist’s question. He mentions how there are two schools of thought.](https://livesetdb.com/track/55-guest-gives-advice-to-panelists-question-he-mentions-how-there-are-two)
8. [20 - Guest: Don’t mock too much.](https://livesetdb.com/track/20-guest-dont-mock-too-much)
9. [54 - Panel: Are unit tests the easiest? I just reach for unit testing b/c it helps me code faster. But 90% of my code is NOT that.](https://livesetdb.com/track/54-panel-are-unit-tests-the-easiest-i-just-reach-for-unit-testing-b-c-it-helps)
10. [Guest: Exactly! Most of our test is glue - gluing together a bunch of different stuff! Those are best tested as a medium-sized integration suite.](https://livesetdb.com/track/guest-exactly-most-of-our-test-is-glue-gluing-together-a-bunch-of-different)
11. [39 - Panel: That seems like a lot of work, though! I loathe the database stuff b/c they don’t map cleanly. I hate this database stuff.](https://livesetdb.com/track/39-panel-that-seems-like-a-lot-of-work-though-i-loathe-the-database-stuff-b-c)
12. [06 - Guest: I agree, but don’t knock the database, but knock the level above the database.](https://livesetdb.com/track/06-guest-i-agree-but-dont-knock-the-database-but-knock-the-level-above-the)
13. [49 - Guest: Yes, it takes time! Building the script and the testing tools, but when you have it then adding to it is zero time. Once you are in the air it’s smooth sailing.](https://livesetdb.com/track/49-guest-yes-it-takes-time-building-the-script-and-the-testing-tools-but-when)
14. [17 - Panel: I guess I can see that. I like to do the dumb-way the first time. I am not clear on the transition.](https://livesetdb.com/track/17-panel-i-guess-i-can-see-that-i-like-to-do-the-dumb-way-the-first-time-i-am)
15. [47 - Guest: Write the code, and then write the tests.](https://livesetdb.com/track/47-guest-write-the-code-and-then-write-the-tests)
16. [25 - Panel: Can you talk about that more, please?](https://livesetdb.com/track/25-panel-can-you-talk-about-that-more-please)
17. [Guest: Don’t have the same unit - do browser and business logic stuff separated. The real business logic stuff needs to be above that level. First principle is separation of concerns.](https://livesetdb.com/track/guest-dont-have-the-same-unit-do-browser-and-business-logic-stuff-separated-the)
18. [04 - Panel talks about dependency interjection and asks a question.](https://livesetdb.com/track/04-panel-talks-about-dependency-interjection-and-asks-a-question)
19. [27 - Guest: What I am talking about very, very light inter-dependency interjection.](https://livesetdb.com/track/27-guest-what-i-am-talking-about-very-very-light-inter-dependency-interjection)
20. [19 - Panel: You have a main function and you are doing requires in the main function. You are passing the pieces of that into the components that need it.](https://livesetdb.com/track/19-panel-you-have-a-main-function-and-you-are-doing-requires-in-the-main)
21. [44 - Guest: I only do it when it’s necessary; it’s not a religion for me. I do it only for those layers that I know will need to be mocked; like database layers, etc.](https://livesetdb.com/track/44-guest-i-only-do-it-when-its-necessary-its-not-a-religion-for-me-i-do-it-only)
22. [09 - Panel.](https://livesetdb.com/track/09-panel)
23. [19 - Guest: It’s taken me 80 years to figure out, but I have made plenty of mistakes a long the way. A test should run for 2-5 minutes max for package.](https://livesetdb.com/track/19-guest-its-taken-me-80-years-to-figure-out-but-i-have-made-plenty-of-mistakes)
24. [53 - Panel: What if you have a really messy legacy system? How do you recommend going into that? Do you write tests for things that you think needs to get tested?](https://livesetdb.com/track/53-panel-what-if-you-have-a-really-messy-legacy-system-how-do-you-recommend)
25. [39 - Guest answers the question and mentions Selenium!](https://livesetdb.com/track/39-guest-answers-the-question-and-mentions-selenium)
26. [27 - Panel: I like that approach.](https://livesetdb.com/track/27-panel-i-like-that-approach)
27. [35 - Chuck: When you say integration test what do you mean?](https://livesetdb.com/track/35-chuck-when-you-say-integration-test-what-do-you-mean)
28. [Advertisement - Sentry.io](https://livesetdb.com/track/advertisement-sentry-io)
29. [52 - Chuck: How much do the tools matter?](https://livesetdb.com/track/52-chuck-how-much-do-the-tools-matter)
30. [01 - Guest: The revolutions matter. Whether you use Jasmine or Mocha or whatever I don’t think it matters. The tests matter not the tools.](https://livesetdb.com/track/01-guest-the-revolutions-matter-whether-you-use-jasmine-or-mocha-or-whatever-i)
31. [39 - Aimee: Yes and no. I think some tools are outdated.](https://livesetdb.com/track/39-aimee-yes-and-no-i-think-some-tools-are-outdated)
32. [50 - Guest: I got a lot of flack about my blog where I talk about Cypress versus Selenium . I will never use Jasmine. In the end it’s the](https://livesetdb.com/track/50-guest-i-got-a-lot-of-flack-about-my-blog-where-i-talk-about-cypress-versus)
33. [29 - Aimee: I am curious would you be willing to expand on what the Selenium folks were saying about Puppeteer and others may not provide?](https://livesetdb.com/track/29-aimee-i-am-curious-would-you-be-willing-to-expand-on-what-the-selenium-folks)
34. [54 - Aimee mentions Cypress.](https://livesetdb.com/track/54-aimee-mentions-cypress)
35. [08 - Guest: My guessing is that their priority is not there. I kind of agree with them.](https://livesetdb.com/track/08-guest-my-guessing-is-that-their-priority-is-not-there-i-kind-of-agree-with)
36. [21 - Aimee: I think they are focusing on mobile more.](https://livesetdb.com/track/21-aimee-i-think-they-are-focusing-on-mobile-more)
37. [24 - Guest: I think cross browser testing is less of an issue now. There is one area that is important it’s the visual area! It’s important to test visually across these different browsers.](https://livesetdb.com/track/24-guest-i-think-cross-browser-testing-is-less-of-an-issue-now-there-is-one-area)
38. [Guest: Selenium is a Swiss knife - it can do everything.](https://livesetdb.com/track/guest-selenium-is-a-swiss-knife-it-can-do-everything)
39. [32 - Chuck: I am thinking about different topics to talk about. I haven’t used Puppeteer. What’s that about?](https://livesetdb.com/track/32-chuck-i-am-thinking-about-different-topics-to-talk-about-i-havent-used)
40. [49 - Guest: Puppeteer is much more like Selenium . The reason why it’s great is b/c Puppeteer will always be Google Chrome.](https://livesetdb.com/track/49-guest-puppeteer-is-much-more-like-selenium-the-reason-why-its-great-is-b-c)
41. [42 - Chuck: When should you be running your tests? I like to use some unit tests when I am doing my development but how do you break that down?](https://livesetdb.com/track/42-chuck-when-should-you-be-running-your-tests-i-like-to-use-some-unit-tests)
42. [06 - Guest.](https://livesetdb.com/track/06-guest)
43. [30 - Chuck: You run tests against production?](https://livesetdb.com/track/30-chuck-you-run-tests-against-production)
44. [45 - Guest: Don’t run tests against production...let me clarify!](https://livesetdb.com/track/45-guest-dont-run-tests-against-production-let-me-clarify)
45. [14 - Chuck.](https://livesetdb.com/track/14-chuck)
46. [21 - Guest: When I am talking about integration testing in the backend...](https://livesetdb.com/track/21-guest-when-i-am-talking-about-integration-testing-in-the-backend)
47. [37 - Chuck asks a question.](https://livesetdb.com/track/37-chuck-asks-a-question)
48. [47 - Guest: I am constantly running between frontend and backend.](https://livesetdb.com/track/47-guest-i-am-constantly-running-between-frontend-and-backend)
49. [14 - Chuck: Nice! You talked in the prep docs that you urged a new frontend developer to not run the app in the browser for 2 months?](https://livesetdb.com/track/14-chuck-nice-you-talked-in-the-prep-docs-that-you-urged-a-new-frontend)
50. [40 - Guest: Frontend is so visual.](https://livesetdb.com/track/40-guest-frontend-is-so-visual)
51. [12 - Chuck: What are you working on now?](https://livesetdb.com/track/12-chuck-what-are-you-working-on-now)
52. [16 - Guest: I am working with Applitools and I was impressed with what they were doing.](https://livesetdb.com/track/16-guest-i-am-working-with-applitools-and-i-was-impressed-with-what-they-were)
53. [08 - Guest: Those screenshots are never the same.](https://livesetdb.com/track/08-guest-those-screenshots-are-never-the-same)
54. [36 - Panel: It’s...comparing the output to the static site to the...](https://livesetdb.com/track/36-panel-its-comparing-the-output-to-the-static-site-to-the)
55. [28 - Guest: I am working mostly (right now) in backend.](https://livesetdb.com/track/28-guest-i-am-working-mostly-right-now-in-backend)
56. [40 - Chuck: Anything else? Picks!](https://livesetdb.com/track/40-chuck-anything-else-picks)
57. [57 - Advertisement: Get A Coder Job!](https://livesetdb.com/track/57-advertisement-get-a-coder-job)
