We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b2a192 + ad0a5b3 commit a701341Copy full SHA for a701341
1-js/03-code-quality/05-testing-mocha/beforeafter.view/test.js
@@ -1,5 +1,11 @@
1
describe("test", function() {
2
+
3
+ // Mocha usually waits for the tests for 2 seconds before considering them wrong
4
5
+ this.timeout(200000); // With this code we increase this - in this case to 200,000 milliseconds
6
7
+ // This is because of the "alert" function, because if you delay pressing the "OK" button the tests will not pass!
8
9
before(() => alert("Testing started – before all tests"));
10
after(() => alert("Testing finished – after all tests"));
11
0 commit comments