Start your Node.js Contributions

by writing Unit tests

- Trivikram Kamat

#NodeConfEU

Trivikram Kamat

Software Development Engineer

@trivikram

@trivikr

3

What are we going to cover?

  • Why write Unit tests? Aren't they boring?

    • Spoiler: They're not!

  • How to write unit tests for Node.js Core

    • Spoiler: We're going to write one live!

 

2017

Java

C#

TypeScript:

https://www.typescriptlang.org/

Jest:

https://jestjs.io/

ts-jest

First Issue on Github!

First Pull Request!

That's just the beginning!

  • tslint

  • tslint-eslint-rules

  • confs-tech

  • and more...

Hacktoberfest!

 Create 5 PRs in the month of October and get a T-shirt

Let's contribute to Node.js!

While writing tests, I found some bugs!

Next: Fix those bugs!

Talk is cheap,

Show me the Code!

As Abraham Lincoln once said:

- Linus Torvalds

Creator of Linux and Git

Time to switch to development mode!

How can I contribute?

  • Code and Learn workshop today:

    • Time: 2pm

    • Location: McCurdy 3

  • Go to NodeToDo.org and follow the steps

Summary:

  • Unit tests are important:

    • they help you understand the system

    • they help you find and fix bugs

  • Unit tests aren't boring

    • tools make it simple for you

  • Do join us for Code+Learn today or visit NodeToDo.org

Thank you for listening!

Trivikram Kamat

Twitter: @trivikram

Github: @trivikr

Slides: https://slides.com/trivikram/how-to-contribute-to-nodejs

How to contribute to Node.js core

By Trivikram Kamat

How to contribute to Node.js core

Learn how you can use VSCode launch configs to write unit tests quickly - helping improve test coverage of Node.js core

  • 981