From 063a2ff7b4ccdc2a5ad40673dec36f174bee9c41 Mon Sep 17 00:00:00 2001 From: Jamy Date: Wed, 13 Sep 2023 20:38:29 +0200 Subject: [PATCH] fix: support `testIsolation` option (#257) Co-authored-by: Kent C. Dodds --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index b48450a..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').get('chainerId') === this.get('chainerId') + this.get('prev')?.get('chainerId') === this.get('chainerId') ? 'child' : 'parent', message: inputArr,