Once I complete what is requested, I add the Gitpod link, click on the complete button, and the output is this:
// running tests
All tests should pass.
You should choose the correct method for the first assertion - isNull vs. isNotNull.
You should choose the correct method for the second assertion - isNull vs. isNotNull.
// tests completed
// console output
[Error]
[Error]
[Error]
I don’t know if the instructions are unclear, or I’m not understanding something. In Gitpod I see that in the console output all tests fail except #1, but the exercise asks me to only modify #1. It’s a bit confusing.
The errors look like this:
AssertionError: assert.fail()
at Context.<anonymous> (tests/1_unit-tests.js:13:14)
at process.processImmediate (node:internal/timers:478:21)
I would appreciate any help. I want to move forward with this course.
###Your project link(s)
solution:
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Challenge Information:
Quality Assurance and Testing with Chai - Learn How JavaScript Assertions Work
I am also having the same issue as the original poster. I have gone through and commented out all the tests (except the two for the lesson) in both 1_unit-tests.js and in 2_functional-tests.js
What I am left with in GitPod after running npm run start is
Running Tests…
Unit Tests
Basic Assertions
✔ #isNull, #isNotNull
1 passing (3ms)
However, when I copy/paste the GitPod environment link into the Solution Link field and select the “I’ve completed this challenge” button I get the following:
// running tests All tests should pass. You should choose the correct method for the first assertion -
isNull
vs.
isNotNull
. You should choose the correct method for the second assertion -
isNull
vs.
isNotNull
. // tests completed // console output [Error] [Error] [Error]
I have been stuck in the first lesson for a while, as newbie in the platform I didn’t get what was the url the lesson was requesting for, maybe a better hint pointing to the port tab url will help a lot, instead of just leave the “3000…gitpod.io” hint (wich is very similar to the gitpod workspace url and causes confusion)
This is the hint from the first backend challenge.
If you are using Gitpod, make sure the app is running and the preview window is open. Copy the preview window’s URL and paste it into the Solution Link input below.
Not sure how often that is repeated as it is somewhat expected that you follow the curriculum in chronologic order.