Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo: Testing frameworks for JavaScript in frontend and backend #1594

Merged
merged 2 commits into from
Mar 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions contributions/demo/week2-testing-and-CI/bonnici-nalenz/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Assignment Proposal

## Title

Testing frameworks for JavaScript in frontend and backend

## Names and KTH ID
- Elias Bonnici (bonnici@kth.se)
- Julian Nalenz (nalenz@kth.se)

## Deadline

Task 1

## Category

Demo

## Description

With the NodeJS ecosystem, JavaScript can be used in both frontend and backend. As with any software stack, unit and integration testing are an essential part, yet selecting the right tool for each individual use case can be a challenge, as NodeJS-based environments can be highly diverse.

In this demonstration, we show how JavaScript-/NodeJS-based frontends and backends can be tested in real life and how to set up and run such tests with the respective frameworks. Specifically, we will demonstrate the combined use of Jest and Supertest for the backend and its HTTP routes and React Testing Library for the frontend.