• Testing JavaScript & NodeJS Complete Study

    Development May 11, 2020
    Testing JavaScript & NodeJS Complete Study

    A Complete Guide to Testing JavaScript and NodeJS

    This study is designed for JavaScript beginners who want to deep dive into JavaScript testing and improve their skills in testing JavaScript applications. We will develop a full-stack real-time advanced JavaScript application and build with the most advanced features of JavaScript. We will clone a project, and write tests from scratch. There will be so many jobs and code reviews, to make sure you know exactly what is being thought in the study, we will proceed to more real-world approaches, covering high-level topics like; integration testing, mocking/spying/stubbing, asynchronous tests, database testing, end-to-end testing. We will then jump into a test-driven dynamic JavaScript environment, to know the Red/Green refactor testing cycle, and how to apply this into our projects to build more robust and bug-free applications.

    Websites & Apps built using NodeJS:

    • LinkedIn
    • Netflix
    • PayPal
    • Uber

    Requirements:

    • Basic understanding of Javascript & NodeJS

    Features of NodeJS:

    • Asynchronous and event-driven
    • Single-threaded but highly scalable
    • No buffering
    • Fast runtime

    Uses of NodeJS:

    • I/O bound applications
    • Single-page applications
    • JSON APIs based applications
    • Data streaming applications
    • Data-intensive real-time applications (DIRT)

    What you’ll learn:

    • Test runners
    • Test suites and organizing tests
    • Assertion libraries
    • To comprehend these theories, we will write unit tests for real-world functions and know exactly how testing seems when running on a real-world project
    • Get a very broad knowledge of Unit Testing
    • Test real-world NodeJS APIs with both Unit Testing & Integration Testing
    • Become a genius at writing end-to-end tests for all types of applications
    • Learn mocking, stubbing, and common techniques of testing applications
    • Learn when and how to use feature tests, unit tests, and end-to-end tests

    Who this study is for:

    • JavaScript beginners willing to become proficient in JavaScript testing
    • Developers willing to learn test-driven JavaScript development
    • Developers with completely no experience testing applications
    • Developers willing to polish contemporary JavaScript testing tools

    Author: Kati Frantz
    Language: English
    Size: 800MB

    0 0 vote
    Article Rating

    Study Topics:

    • 01 Testing JavaScript Introduction from scratch
      1. 1 1.01 What is a test
      2. 2 1.02 What is an assertion
      3. 3 1.03 What are test runners
      4. 4 1.04 Testing parse and stringify functions
      5. 5 1.05 Testing async functions
      6. 6 1.06 Testing rejected promises
      7. 7 1.07 Code coverage
      8. 8 1.08 Migrating to jest
    • 02 Unit testing nodejs apps
      1. 1 2.01 Project setup
      2. 2 2.02 Testing pre-save hooks for mongoose models
      3. 3 2.03 Mocking packages with jest
      4. 4 2.04 Setup and teardown
      5. 5 2.05 Testing instance methods
      6. 6 2.06 Mock functions with jest
      7. 7 2.07 Mock and spies
      8. 8 2.08 Testing the authentication middleware
      9. 9 2.09 Refactoring to test utils
    • 03 Integration testing nodejs apis
      1. 1 3.01 Testing the registration process
      2. 2 3.02 Testing failed validations
      3. 3 3.03 Testing the email confirmation processes
    • 04 End to end testing with cypress
      1. 1 4.01 Setting up cypress
      2. 2 4.02 Testing the home page
      3. 3 4.03 Testing the login process

    Share Study:


    guest
    0 Comments
    Inline Feedbacks
    View all comments
    0
    Would love your thoughts, please comment.x
    ()
    x