From f26304ddb653b19c44ffc2dbb6d67cef30f309b2 Mon Sep 17 00:00:00 2001 From: Matt Seccafien Date: Sun, 22 Sep 2019 02:29:05 -0400 Subject: [PATCH] config --- jest.config.js | 2 ++ packages/jest-dom-mocks/src/document-cookies.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/jest.config.js b/jest.config.js index 8015008d9a..f043520480 100644 --- a/jest.config.js +++ b/jest.config.js @@ -8,6 +8,8 @@ const moduleNameMapper = getPackageNames().reduce( return accumulator; }, { + '@shopify/react-cookie/server': + '/packages/react-cookie/src/server.ts', '@shopify/react-effect/server': '/packages/react-effect/src/server.tsx', '@shopify/react-async/testing': diff --git a/packages/jest-dom-mocks/src/document-cookies.ts b/packages/jest-dom-mocks/src/document-cookies.ts index 5cd6760f01..5c5281ea1b 100644 --- a/packages/jest-dom-mocks/src/document-cookies.ts +++ b/packages/jest-dom-mocks/src/document-cookies.ts @@ -1,3 +1,7 @@ +/** + * @jest-environment jsdom + */ + import cookie from 'cookie'; export default class DocumentCookies {