├── .gitignore └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JavaScript Unit Testing - The Practical Guide Code & Course Materials 2 | 3 | This repository contains code snapshots and other attachments (e.g., slides) for our [JavaScript Unit Testing - The Practical Guide](https://acad.link/testing) course. 4 | 5 | You may use the provided resources to follow along with the course, debug your code or to compare your solution to Maximilian's. Re-distributing course materials (including the content provided with this repository) is not permitted. 6 | 7 | # How To Use 8 | 9 | This repository contains multiple [branches](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches). Every branch represents a course section and contains the resources that belong to that section. 10 | 11 | For example, the branch [02-basics](https://github.com/academind/js-testing-practical-guide-code/tree/03-basics) contains all course resources (e.g., code snapshots) that belong to section 3 ("Testing Basics") of the course. 12 | 13 | You can switch branches via the dropdown in the top left corner of this repository page. 14 | 15 | # Provided Resources 16 | 17 | In most branches (i.e., for most course sections), you find the following folders in the repository branch: 18 | 19 | - **`/code`**: Contains multiple subfolders with different code snapshots for this course section (also see [Using Code Snapshots](#using-code-snapshots)) 20 | - **`/slides`**: Contains section slides (if slides were shown / used in the section) 21 | - **`/extra-files`**: Contains any extra files that were used (e.g., starting project code snapshots) 22 | 23 | # Using Code Snapshots 24 | 25 | Code snapshots (which you find in `/code`) are there for you to compare your code to mine and find + fix errors you might have in your code. 26 | 27 | You can either view my code directly here on Github (you can open + view code files without issues here) or you download the snapshots. To download (or [clone](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository)) the snapshots, simply use the **"Code" button** in the top right corner of the repository. This allows you to download the currently selected branch. You can then browse the code snapshots locally on your machine. 28 | 29 | The subfolders in the `/code` folder are named such that mapping them to the course lectures is straightforward. 30 | 31 | # Running The Provided Code 32 | 33 | The provided code is primarily meant to be used for code comparisons (i.e., so that you can compare your code to mine to find + fix errors). 34 | 35 | But you can also run my project code by navigating into the respective code snapshots subfolder (i.e., a subfolder in the `/code` folder) and executing `npm install` followed by `npm test` there. --------------------------------------------------------------------------------