From a34406f93188331a4f515a4d0acead3f3387b8b7 Mon Sep 17 00:00:00 2001 From: Jamy Golden Date: Thu, 13 Jul 2023 14:05:55 +0200 Subject: [PATCH 1/2] Fix bug with cypress `testIsolation` option --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index b48450a..4d53617 100644 --- a/src/index.js +++ b/src/index.js @@ -37,7 +37,7 @@ function createQuery(queryName, implementationName) { Cypress.log({ name: queryName, type: - this.get('prev').get('chainerId') === this.get('chainerId') + this.get('prev') && this.get('prev').get('chainerId') === this.get('chainerId') ? 'child' : 'parent', message: inputArr, From 913194a7e9afd02a7882f3cfefa02d28758d6025 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Wed, 13 Sep 2023 12:36:22 -0600 Subject: [PATCH 2/2] Update index.js --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 4d53617..cbe20ef 100644 --- a/src/index.js +++ b/src/index.js @@ -37,7 +37,7 @@ function createQuery(queryName, implementationName) { Cypress.log({ name: queryName, type: - this.get('prev') && this.get('prev').get('chainerId') === this.get('chainerId') + this.get('prev')?.get('chainerId') === this.get('chainerId') ? 'child' : 'parent', message: inputArr,