@jahia/cypress 6.4.4 → 6.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -202,11 +202,11 @@ function enable() {
202
202
  // Ensure the logger is enabled
203
203
  Cypress.env(envVarDisableJsLogger, false);
204
204
  /**
205
- * Attach Cypress hooks forconsole messages collecting before EACH test execution.
205
+ * Attach Cypress hooks for console messages collecting before EACH test execution.
206
206
  * Use 'beforeEach' hook and local (cy) context instead of global (Cypress) one
207
207
  * to ensure proper async flow and avoid events and hooks flakiness.
208
208
  */
209
- before(function () {
209
+ beforeEach(function () {
210
210
  attachJsInterceptor();
211
211
  });
212
212
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jahia/cypress",
3
- "version": "6.4.4",
3
+ "version": "6.4.5",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "lint": "eslint src -c .eslintrc.json --ext .ts --max-warnings=0"
@@ -221,11 +221,11 @@ function enable(): void {
221
221
  Cypress.env(envVarDisableJsLogger, false);
222
222
 
223
223
  /**
224
- * Attach Cypress hooks forconsole messages collecting before EACH test execution.
224
+ * Attach Cypress hooks for console messages collecting before EACH test execution.
225
225
  * Use 'beforeEach' hook and local (cy) context instead of global (Cypress) one
226
226
  * to ensure proper async flow and avoid events and hooks flakiness.
227
227
  */
228
- before(() => {
228
+ beforeEach(() => {
229
229
  attachJsInterceptor();
230
230
  });
231
231