Skip to content

Auto grading missing for exercise 2.6 and 2.7 #17

@alesanchezr

Description

@alesanchezr

The exercises 02.6-conditional-rendering, 02.7-conditional-rendering-ii have a tests.js with the unit tests to confirm if the exercise was well done.

The fist two tests are ok, but we need an additional test with a snapshot that checks for the expected output. Very similar to the tests.js that are already done in the previous exercises.

To complete this feature you will have to update the tests.js file in both exercises folders and add a new test using toMatchInlineSnapshot.

How to complete this issue?

  1. Download the exercises like a normal student.
  2. Using your local text editor (atom, sublime, etc.) open the tests.js file on the particular exercise you are working on and edit.

Now, test your tests.js file for that particular exercise following the steps bellow:

  1. Run the exercises like a normal student using $ bc run:exercises
  2. Open website in your browser and navegate to the particular exercises that you want to test (just like a normal student would do).
  3. Click build and then test, your tests.js script will run.

One you are happy with your code copy the content of your tests.js files and edit the using your local text editor open the tests.js file on that particular exercise. tests.js files in this repository. It will automatically create a pull request for you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions