You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-14Lines changed: 33 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,6 @@ When playing Clue, these three details are represented by a **suspect** card, a
14
14
15
15
- Fork this repo
16
16
- Clone this repo
17
-
- Visit the "Actions" tab in your fork, and enable workflows
18
17
19
18
<br>
20
19
@@ -28,30 +27,28 @@ git commit -m "done"
28
27
git push origin master
29
28
```
30
29
31
-
- Create Pull Request so your TAs can check up your work.
30
+
- Create a Pull Request so that your TAs can check your work.
32
31
33
32
<br>
34
33
35
-
## Remember our tests!
36
-
37
-
We will be working with automated tests again!
34
+
## Instructions
38
35
39
-
Please, open your terminal, change directories into the root of the lab, and run `npm install` to install the test runner. Now, you can run the `npm run test:watch` command to run automated tests in _watch mode_. Open the resulting `lab-solution.html` file with the "Live Server" VSCode extension to always see the most up-to-date test results.
36
+
You will be working in the `src/clue.js` file, which is already loaded in the `index.html` file.
40
37
41
-
_Hint:_
38
+
To run the JavaScript code, open the `index.html` file using the [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) VSCode extension.
42
39
43
-
```shell
44
-
$ cd lab-javascript-clue
45
-
$ npm install
46
-
$ npm run test:watch
47
-
```
40
+
To see the output of your JavaScript code, open the [Console in the Developer Tools](https://developer.chrome.com/docs/devtools/open/#console).
48
41
49
42
<br>
43
+
<hr>
50
44
51
-
## Instructions
45
+
### Note about tests
46
+
47
+
This LAB is equipped with unit tests to provide automated feedback on your lab progress.
52
48
53
-
You will be working in the `src/clue.js` file. The test requirements (`tests/clue.spec.js`) will guide you in solving the following iterations.
49
+
**After completing the basic iterations**, go to the **"Test Your Code"** section at the bottom. There you'll be asked to install the testing dependencies and run the tests to check how many tests your code is passing. Once you run the tests, correct your code to pass the failing tests.
54
50
51
+
<hr>
55
52
<br>
56
53
57
54
### Iteration 1: Create the cards
@@ -127,6 +124,28 @@ Declare a function named `revealMystery` that receives an _envelope_ `object` (w
127
124
128
125
<br>
129
126
127
+
## Test Your Code
128
+
129
+
We will be working with automated tests again!
130
+
131
+
Please, open your terminal, change directories into the root of the lab, and run `npm install` to install the test runner. Now, you can run the `npm run test:watch` command to run automated tests in _watch mode_. Open the resulting `lab-solution.html` file with the "Live Server" VSCode extension to always see the most up-to-date test results.
132
+
133
+
_Hint:_
134
+
135
+
```shell
136
+
$ cd lab-javascript-clue
137
+
$ npm install
138
+
$ npm run test:watch
139
+
```
140
+
141
+
142
+
143
+
The test requirements (`tests/clue.spec.js`) will guide you in solving the remaining test requirements.
144
+
145
+
<br>
146
+
147
+
148
+
130
149
## Extra Resources
131
150
132
151
-[Data Structures: Objects and Arrays](http://eloquentjavascript.net/04_data.html)
0 commit comments