From 80b76607c6873d1a30c84c9b59a12e858dd2b2da Mon Sep 17 00:00:00 2001 From: Steven Burnett Date: Wed, 28 Nov 2018 14:01:09 -0700 Subject: [PATCH] fix timezone core import in jest Test Plan: - tests pass - brent is happy Change-Id: I26c021bd50e2cf63aec96aedd987f6b8c6370c62 Reviewed-on: https://gerrit.instructure.com/173592 Reviewed-by: Brent Burgoyne Tested-by: Jenkins QA-Review: Steven Burnett Product-Review: Steven Burnett --- jest.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jest.config.js b/jest.config.js index ba06798ac20..1255e74a1cc 100644 --- a/jest.config.js +++ b/jest.config.js @@ -20,7 +20,8 @@ module.exports = { moduleNameMapper: { '^i18n!(.*$)': '/jest/i18nTransformer.js', '^compiled/(.*)$': '/app/coffeescripts/$1', - '^jsx/(.*)$': '/app/jsx/$1' + '^jsx/(.*)$': '/app/jsx/$1', + "^timezone$": "/public/javascripts/timezone_core.js" }, roots: ['app/jsx'], moduleDirectories: [ @@ -47,5 +48,5 @@ module.exports = { transform: { '^i18n': '/jest/i18nTransformer.js', '^.+\\.jsx?$': 'babel-jest' - } + }, }