Hi,
I’ve got this error message :
Error: expected { status: 'unavailable' } to be an array
<anonymous> frame-runner.c192af4990ab9ff3bf6b.js line 2 > eval:15
_callee$ frame-runner.js:93
u runtime.js:63
_invoke runtime.js:293
E runtime.js:118
Babel 6
runTests frame-runner.js:69
t frame.js:55
l runtime.js:63
_invoke runtime.js:291
S runtime.js:118
Babel 4
Oe frame.js:52
t build.js:137
Redux 15
frame-runner.js:98:16
_callee$ frame-runner.js:98
u runtime.js:63
_invoke runtime.js:293
E runtime.js:118
Babel 8
runTests frame-runner.js:69
t frame.js:55
l runtime.js:63
_invoke runtime.js:291
S runtime.js:118
Babel 4
Oe frame.js:52
t build.js:137
Redux 15
I’m passing all the tests except for the assertions test though they come up green if I run them.
I’ve been looking through the files and I have found this { status : unavailabe} in fcc-testing.js, on line 57 to be exact.
let error;
app.get('/_api/get-tests', cors(), function(req, res, next){
console.log(error);
if(!error && process.env.NODE_ENV === 'test') return next();
res.json({status: 'unavailable'});
},
This seems to imply that the error is not caused by my tests but by the running of it and uncommenting NODE_ENV. This in its turn coincides with a new replit implementation of the .env file and about the time I suddenly did not pass this test anymore. I did so in the past.
In the console you can click framerunner.js and you land right into the code.
const test = await testPromise;
if (typeof test === 'function') {
await test(e.getUserInput);
}
return { pass: true };
} catch (err) {
if (!(err instanceof chai.AssertionError)) {
console.error(err);
}
// to provide useful debugging information when debugging the tests, we
// have to extract the message and stack before returning
return {
err: { message: err.message, stack: err.stack }
};
}
As I understand it, it says, if it’s not a Chai assertion error, console.error(err)
Which means that there may be no problem with my assertions and others are going to experience this as well.
I hope I’m wrong. But I think you have to look at this, to make sure.
This is a url to my replit : https://KarinMeersman-issuetracker-1.karinmeersman.repl.co
BTW, if you already know this, I suspect so, I did pass. Just once. Suddenly and then not anymore. Maybe there was some gracious soul that let me through the gates. Or it was fate or a glitch, anyway, whether it was You, Great Spirit in the Sky or a kind FCC engineer, thank you very much.
Greets,
Karin