Best of Testing2022

  1. 1
    Article
    Avatar of devdojoDevDojo·4y

    console.log alternatives you didn't know

    Using the destruction power of javascript objects, you can use destructuring. You can change the log function to any other name you want. This method is used to measure time. It's used to check if a condition is true. If it's not, it will throw an error.

  2. 2
    Article
    Avatar of devgeniusDev Genius·4y

    How to write maintainable JavaScript code in 2023 — Web or Node.js

    Using TypeScript everywhere is best suited for JS developers with at least medium experience. Don’t be scared of TypeScript. Use prototypes and/or MVPs before implementing complex features. Use ESLint and Prettier together and you can focus on what your code does. If you use prettier, it will join multi-line breaks.

  3. 3
    Article
    Avatar of medium_jsMedium·4y

    6 Best Practices for Software Delivery

    The Testing Pyramid is a great starting point, and the Testing Pyramid to Fail Fast and Reduce Risk. The longer you leave feedback, the most costly it will become, you start having to interrupt people from other work, and after weeks/months pass by, it’s more likely that people and knowledge will leave.

  4. 4
    Article
    Avatar of itnextITNEXT·4y

    7 React Clean Code Tips You Should Know

    React Clean Code tips for developers to write maintainable React code. It's easy to apply test-driven development in React, too as the test setup process is so effortless. You’re still dealing with modules and their relations, like, which module is performing what tasks, and how other modules rely on them.

  5. 5
    Article
    Avatar of devgeniusDev Genius·4y

    8 Ways To Drastically Boost Your Developer Productivity

    8 ways to boost your developer productivity with these 8 tips. Automate repetitive tasks with scripts. Use a real debugger instead of printing variables. Back up your local database with Bash Scripts. Use the right tool for the job and don't forget the possibility that you might accidentally commit your work to memory.

  6. 6
    Article
    Avatar of logrocketLogRocket·4y

    How to automate API tests with Postman

    Writing API tests with Postman is a platform that provides a complete set of tools for building, testing, documenting, and mocking APIs. We'll explore how to write automated functional and integration tests for your APIs that will run in a CI/CD pipeline. We’ll create a collection called Delivery-API Tests where we are simple tests, but the goal is to understand the concept of testing in Postman.

  7. 7
    Article
    Avatar of hashnodeHashnode·4y

    Unit testing with Jest, React, and TypeScript

    Software testing is critical to lower the chances of our program failing by running tests with the end-user in mind. Testing-library/react is a testing utility tool that's built to test the actual DOM tree rendered by React on the browser. The goal of the library is to help you write tests that resemble how a user would use your application.

  8. 8
    Article
    Avatar of itnextITNEXT·4y

    Front-end Testing Principles

    For the Front-End we need to focus on only two targets for our tests: the end-user who interacts with your component in the browser and the developer who renders and uses your component. Writing your tests in isolation will guide us to a better way to write your tests to improve their reliability, simplify the code, and increase confidence.

  9. 9
    Article
    Avatar of communityCommunity Picks·3y

    CI/CD Tutorial For Developers

    Continuous integration (CI) and continuous delivery (CD) helps IT organizations streamline their development process by automating manual tasks related to code deployment. Continuous delivery automates the release process and ensures that code is always in a releasable state. CI/CD can also be as simple as moving away from software delivery practices to cloud-native ones.

  10. 10
    Article
    Avatar of communityCommunity Picks·4y

    Why You Should Choose NestJS as Your Backend Framework

    Open-source NestJS is an open-source project with 47,000 stars on GitHub. The framework needs to be fast and able to handle concurrent requests at scale. NestJS’s built-in modules system naturally results in a neat separation of concerns.

  11. 11
    Article
    Avatar of pointerPointer·4y

    facebook/lexical: Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.

    Lexical is an extensible JavaScript web text-editor framework with an emphasis on reliability, accessibility and performance. Lexical aims to provide a best-in-class developer experience, so you can easily prototype and build features with confidence. Combined with a highly extensible architecture, Lexical allows developers to create unique text editing experiences that scale in size and functionality.

  12. 12
    Article
    Avatar of communityCommunity Picks·3y

    The Perfect Commit

    The Perfect Commit is a single, focused change that should be treated thoughtfully and with care. For things like web applications that can be deployed to production, a commit should be a unit that could be deployed.

  13. 13
    Article
    Avatar of syncfusionSyncfusion·4y

    JavaScript API Mocking Techniques

    API Mocking Mocking is a client-side mocking framework that mocks the API in the browser by using the Pretender library. It has many built-in tools: serializer, route handlers, database, models, fixtures, and factories. It enables emulating dynamic behavior between the front end and back end, rather than mocking the same response over and over again by hitting an endpoint.

  14. 14
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    Learn NestJS by Building a CRUD API

    NestJS is a framework for building efficient, scalable Node.js web applications. It is a complete development kit for building scalable server-side apps. You will learn how to create a bookmarks API from scratch using NestJS, Docker, Postgres, Passport.js, Prisma and pactum.

  15. 15
    Article
    Avatar of bytebytegoByteByteGo·3y

    EP 38: Where do we cache data?

    This week’s system design refresher: ByteByteGo Facebook page What is OSI Model? What tech stack is commonly used for microservices? We’ve launched a Facebook page and want our content to be more accessible. The diagram illustrates where we cache data in a typical architecture.

  16. 16
    Article
    Avatar of medium_jsMedium·4y

    How we reduced our annual server costs by 80% — from $1M to $200k — by moving away from AWS

    Prerender saved $800k by removing their reliance on AWS and building in-house infrastructure Combined with AWS, we had already cut our expenses by 22%. The testing phase was crucial to make sure the following processes would run smoothly. After testing whether Prerender pages could be cached in both S3 and minio, we slowly diverted traffic away from AWS S 3 and towards minio.

  17. 17
    Article
    Avatar of codegurucodeguru·4y

    Top 10 Security Testing Tools for Developers

    Security testing is the practice of evaluating an information system’s security by detecting and exploiting vulnerabilities. With the number of data breaches on the exponential rise, it is more crucial than ever for developers to ensure the security of their websites and applications. There are a number of open-source security testing tools around to help in this endeavor.

  18. 18
    Article
    Avatar of hnHacker News·4y

    7 Absolute Truths I Unlearned as Junior Developer

    Next year, I’ll be entering my 10th year of being formally employed to write code. I wanted to share some of the ways my thinking shifted over the years as a developer. Maybe you can relate, and also have some funny (and humbling) stories to share about your own life lessons.

  19. 19
    Article
    Avatar of changelogChangelog·3y

    Web Automation: Don't Use Selenium, Use Playwright

    Selenium has been the de facto "standard" since forever. It's simple to get started with and supports almost every programming language. It doesn't work that well with modern, Javascript framework heavy sites. Playwright gives a fairly good implementation that I found works most of the time.

  20. 20
    Article
    Avatar of itnextITNEXT·4y

    Front-end Testing Strategy

    Front-end Testing Strategy defines the different layers of testing and gives an overview of the current situation to propose an effective strategy for testing your software. This article is focused on front-end testing specifically (i.e. React applications and their interactions with components) It is based on testing principles defined by Kent C. Dodds, a famous developer within the React community.

  21. 21
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    Test-Driven Development Tutorial – How to Test Your JavaScript and ReactJS Applications

    Test-Driven Development (TDD) requires you to pre-specify the output your intended program must produce to pass the test of functioning the way you envisioned. This tutorial will show you all you need to cd path/to/addition-calculator-jest-project Step 4: Create a package, Initialize a package.json file for your project. If your package manager is Yarn, run: yarn add jest --save-dev.

  22. 22
    Article
    Avatar of towardsdevTowards Dev·4y

    Building a professional API with NodeJS, Typescript, ExpressJS, MongoDB, Jest + Deploy to Heroku — PART 4

    In this article, you’ll learn the CRUD paradigm, implements it in NodeJS and work with Express Routes and Requests. Building a professional API with NodeJS, Typescript, ExpressJS, MongoDB, Jest + Deploy to Heroku.

  23. 23
    Article
    Avatar of devgeniusDev Genius·4y

    🏎 Make your Jest Tests upto 10x Faster

    Make your Jest Tests upto 10x faster with these tips. Make sure most of your tests are around 100ms or below. The slowest ones could max 300ms. Switch to yarn + Node V16 + Jest 28.2 + NodeJS. Use MaxWorkers=50% to get the optimal performance.

  24. 24
    Article
    Avatar of communityCommunity Picks·3y

    Micro services Fundamentals

    Microservices is a type of architecture where the application is broken down into smaller services based on the domain. In a monolithic application, this area of functionality concerns only one application so it is easier to handle it. In contrast to the microservices architecture, monolithic applications are much easier to debug and test.

  25. 25
    Article
    Avatar of hackernoonHacker Noon·4y

    API Testing Without Postman?

    Hoppscotch is a lightweight, web-based API development suite. It was built from the ground up with ease of use and accessibility in mind. It is free to use and as an added perk completely Open Source. But if you will try to use it some restrictions could be found.