From 904490a5bb3c1814f34af52902398aed23ebaa90 Mon Sep 17 00:00:00 2001 From: AnkitAdhikari Date: Sat, 3 Aug 2024 23:00:45 +0545 Subject: [PATCH 1/5] remove funfunfunction video link and add new video link for assignment 1. --- javascript/testing_javascript/more_testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/testing_javascript/more_testing.md b/javascript/testing_javascript/more_testing.md index 64748f5bf2c..b86407cca8f 100644 --- a/javascript/testing_javascript/more_testing.md +++ b/javascript/testing_javascript/more_testing.md @@ -67,7 +67,7 @@ There are two solutions to the 'tightly coupled code' problem. The first, and b
-1. If you haven’t already, watch [FunFunFunction's "Mocking Basics" video](https://www.youtube.com/watch?v=3PjdxjWK0F0). +1. If you haven’t already, watch [about mocking basics](https://www.youtube.com/watch?v=ajiAl5UNzBU&t=3024s). 1. Too much mocking can be a bad thing. It *is* sometimes necessary, but if you have to set up an elaborate system of mocks to test any bit of your code, that means your code is too tightly coupled. While it is quite in-depth, the following article contains several really good points about [program architecture and testing](https://medium.com/javascript-scene/mocking-is-a-code-smell-944a70c90a6a). 1. Now that you have some practice and context for TDD, the [Jest docs section on "Setup and Teardown"](https://jestjs.io/docs/setup-teardown) will probably make good sense to you. 1. Read about [Jest's really handy mocking functions](https://jestjs.io/docs/mock-functions). From 22151dcefb2879989f52ae6776c401610e026087 Mon Sep 17 00:00:00 2001 From: AnkitAdhikari Date: Sat, 3 Aug 2024 23:01:32 +0545 Subject: [PATCH 2/5] fix assignment's last paragraph indentation to align with assignment 5. --- javascript/testing_javascript/more_testing.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/javascript/testing_javascript/more_testing.md b/javascript/testing_javascript/more_testing.md index b86407cca8f..1759e1e05bb 100644 --- a/javascript/testing_javascript/more_testing.md +++ b/javascript/testing_javascript/more_testing.md @@ -72,8 +72,7 @@ There are two solutions to the 'tightly coupled code' problem. The first, and b 1. Now that you have some practice and context for TDD, the [Jest docs section on "Setup and Teardown"](https://jestjs.io/docs/setup-teardown) will probably make good sense to you. 1. Read about [Jest's really handy mocking functions](https://jestjs.io/docs/mock-functions). 1. Watch this amazing video that covers [what to test in your codebase](https://www.youtube.com/watch?v=URSWYvyc42M). - - The video is specifically about testing the Ruby language, but that doesn't matter *at all*. The concepts here ring true in any language, and luckily Ruby is a clear enough language that you will be able to follow along just fine. + The video is specifically about testing the Ruby language, but that doesn't matter *at all*. The concepts here ring true in any language, and luckily Ruby is a clear enough language that you will be able to follow along just fine.
From 501a6a6c9a29cad7fbb50e55adc41ffe01a2e6e4 Mon Sep 17 00:00:00 2001 From: AnkitAdhikari Date: Sat, 3 Aug 2024 23:02:19 +0545 Subject: [PATCH 3/5] removed irrelavent paragraph in assignment 2. --- javascript/testing_javascript/testing_basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/testing_javascript/testing_basics.md b/javascript/testing_javascript/testing_basics.md index aa627826de1..8d7455fce3c 100644 --- a/javascript/testing_javascript/testing_basics.md +++ b/javascript/testing_javascript/testing_basics.md @@ -19,7 +19,7 @@ This section contains a general overview of topics that you will learn in this l
1. Read about the [basic process and the benefits of TDD](https://web.archive.org/web/20211123190134/http://godswillokwara.com/index.php/2016/09/09/the-importance-of-test-driven-development/). -1. Watch at least the first 3 videos of [the Unit Testing in JavaScript video series](https://www.youtube.com/playlist?list=PL0zVEGEvSaeF_zoW9o66wa_UCNE3a7BEr). The first video focuses heavily on the WHY, while the next two go into more depth about the process. We will cover the rest of the videos in our [More Testing](https://www.theodinproject.com/lessons/node-path-javascript-more-testing) lesson. +1. Watch at least the first 3 videos of [the Unit Testing in JavaScript video series](https://www.youtube.com/playlist?list=PL0zVEGEvSaeF_zoW9o66wa_UCNE3a7BEr). 1. Follow along to [Jest's Getting Started tutorial](https://jestjs.io/docs/getting-started). For the upcoming testing practice and project, you only need to follow the instructions for installing jest. 1. Read and follow the [Using Matchers](https://jestjs.io/docs/using-matchers) document on the main Jest website. This one demonstrates some of the other useful functions you can use in your tests. 1. This article explains more about [the why/how and value behind TDD](https://jrsinclair.com/articles/2016/one-weird-trick-that-will-change-the-way-you-code-forever-javascript-tdd/) and also includes some great examples of how to apply it. From a2183b1c885d10d9c0961c39dfa3a51f2a246c5e Mon Sep 17 00:00:00 2001 From: Ankit Adhikari <92327216+AnkitAdhikari@users.noreply.github.com> Date: Sun, 4 Aug 2024 15:54:56 +0545 Subject: [PATCH 4/5] change assignment title Co-authored-by: MaoShizhong <122839503+MaoShizhong@users.noreply.github.com> --- javascript/testing_javascript/more_testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/testing_javascript/more_testing.md b/javascript/testing_javascript/more_testing.md index 1759e1e05bb..02e52cb54ed 100644 --- a/javascript/testing_javascript/more_testing.md +++ b/javascript/testing_javascript/more_testing.md @@ -67,7 +67,7 @@ There are two solutions to the 'tightly coupled code' problem. The first, and b
-1. If you haven’t already, watch [about mocking basics](https://www.youtube.com/watch?v=ajiAl5UNzBU&t=3024s). +1. Watch this [video about mocks in testing](https://www.youtube.com/watch?v=ajiAl5UNzBU&t=3024s). 1. Too much mocking can be a bad thing. It *is* sometimes necessary, but if you have to set up an elaborate system of mocks to test any bit of your code, that means your code is too tightly coupled. While it is quite in-depth, the following article contains several really good points about [program architecture and testing](https://medium.com/javascript-scene/mocking-is-a-code-smell-944a70c90a6a). 1. Now that you have some practice and context for TDD, the [Jest docs section on "Setup and Teardown"](https://jestjs.io/docs/setup-teardown) will probably make good sense to you. 1. Read about [Jest's really handy mocking functions](https://jestjs.io/docs/mock-functions). From ad87c6fc250e6e7aa0001637895bba2df4ecdfdd Mon Sep 17 00:00:00 2001 From: AnkitAdhikari Date: Sun, 4 Aug 2024 16:02:03 +0545 Subject: [PATCH 5/5] join last paragraph of more_testing assignment to assignment 5 --- javascript/testing_javascript/more_testing.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/javascript/testing_javascript/more_testing.md b/javascript/testing_javascript/more_testing.md index 1759e1e05bb..d915ba61ffa 100644 --- a/javascript/testing_javascript/more_testing.md +++ b/javascript/testing_javascript/more_testing.md @@ -71,8 +71,7 @@ There are two solutions to the 'tightly coupled code' problem. The first, and b 1. Too much mocking can be a bad thing. It *is* sometimes necessary, but if you have to set up an elaborate system of mocks to test any bit of your code, that means your code is too tightly coupled. While it is quite in-depth, the following article contains several really good points about [program architecture and testing](https://medium.com/javascript-scene/mocking-is-a-code-smell-944a70c90a6a). 1. Now that you have some practice and context for TDD, the [Jest docs section on "Setup and Teardown"](https://jestjs.io/docs/setup-teardown) will probably make good sense to you. 1. Read about [Jest's really handy mocking functions](https://jestjs.io/docs/mock-functions). -1. Watch this amazing video that covers [what to test in your codebase](https://www.youtube.com/watch?v=URSWYvyc42M). - The video is specifically about testing the Ruby language, but that doesn't matter *at all*. The concepts here ring true in any language, and luckily Ruby is a clear enough language that you will be able to follow along just fine. +1. Watch this amazing video that covers [what to test in your codebase](https://www.youtube.com/watch?v=URSWYvyc42M). The video is specifically about testing the Ruby language, but that doesn't matter *at all*. The concepts here ring true in any language, and luckily Ruby is a clear enough language that you will be able to follow along just fine.