ErickWendel/semana-javascript-expert06
ErickWendel/semana-javascript-expert06 has 1,256 GitHub stars and 195 forks. GitHot measured 0 stars in 24 hours, -2 in 7 days, and -1 in 15 days. Last checked 2026-11-21 11:54 UTC. Last push 2022-05-24.
What you can do
- Must achieve 100% code coverage in tests
- Must have end to end tests validating all API routes
- Must deliver static files as Node.js Streams
- Must deliver music files as a Node.js Stream
측정된 스타 증가
- in 24h
- 0
- in 7 days
- -2
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
JS Expert Week 6.0 Classes - Spotify Radio
창작 및 미디어README.md
OriginalSpotify Radio - JS Expert Week 6.0
Welcome to the sixth Javascript Expert Week. This is the starting code to start our journey.
Tag this project with a star 🌟
Preview

Checklist Features
Web API
- Must achieve 100% code coverage in tests
- Must have end to end tests validating all API routes
- Must deliver static files as Node.js Streams
- Must deliver music files as a Node.js Stream
- Given a disconnected user it should not break the API
- Even if multiple commands are fired at the same time, it should not break the API
- If an unexpected error occurs, the API should keep working
- The project needs to run on Linux, Mac and Windows environments
Web App
- Client
- Must play the broadcast
- Shouldn't pause if any effects are added
- Controller
- Must achieve 100% code coverage in tests
- Must be able to start or stop a broadcast
- Must send commands to add audio effects to a stream
- Client
Tasks per class
- Lesson 01: Cover service and route layers with unit tests and achieve 100% code coverage
- Lesson 02: Maintain 100% code coverage and implement e2e tests for the entire API
- Lesson 03: implement unit tests for the frontend and maintain 100% code coverage
- PLUS:
- provide a new effect
- add a new button on the controller
- add a new effect sound to the
audios/fx/folder - repost on heroku
- provide a new effect
Source code for classes and solving challenges
Credits to the sources I've used on the demos
Streaming
Effects
FAQ
NODE_OPTIONSis not a system recognized command, what to do?- If you are on Windows, the way to create environment variables is different. You must use the word
setbefore the command. - Ex:
"test": "set NODE_OPTIONS=--experimental-vm-modules && npx jest --runInBand",
- If you are on Windows, the way to create environment variables is different. You must use the word
I ran
npm testbut nothing happens, what to do?- Check your Node.js version. We are using version 17. Go to node.js website and download the latest version.
jest.spyOn- when we try to usefunction.name(something likestream.pipe.name), it says the instance is undefined- In this case, use the value as a string:
jest.spyOn(stream, "pipe").mockReturnValue
- In this case, use the value as a string:
Challenge 01 impossible to complete 100% code coverage because testUtil.js is not being fully used
- Add the following code snippet to the first line of the testUtil.js file:
/* istanbul ignore file */. This will make jest ignore this file and complete 100%. - Important: this change will only serve to complete this first and/or second challenge, in the last class, we will not need to ignore this file since we will use all the functions
- Add the following code snippet to the first line of the testUtil.js file:
관련 프로젝트 살펴보기
불러오는 중…