diff --git a/spec/setup.js b/spec/setup.js index 3939e26..ff06a95 100644 --- a/spec/setup.js +++ b/spec/setup.js @@ -15,8 +15,11 @@ global.navigator = window.navigator global.window.nostoReactTest = true afterEach(() => { + // clearing Nosto iframe window handle window.nosto = undefined + // clearing nostojs stub window.nostojs = undefined + // clearing Shopify specific Nosto namespace window.Nosto = undefined document.head.innerHTML = "" document.body.innerHTML = ""