diff --git a/plugin-hrm-form/src/___tests__/translations/index.test.ts b/plugin-hrm-form/src/___tests__/translations/index.test.ts index 5339f7b512..9f5552a70f 100644 --- a/plugin-hrm-form/src/___tests__/translations/index.test.ts +++ b/plugin-hrm-form/src/___tests__/translations/index.test.ts @@ -171,15 +171,6 @@ describe('Hierarchical Translations', () => { describe('lookupTranslation', () => { const mockManagerGetInstance = Manager.getInstance as jest.MockedFunction; - beforeAll(() => { - // eslint-disable-next-line global-require - (global as any).Handlebars = require('handlebars'); - }); - - afterAll(() => { - delete (global as any).Handlebars; - }); - afterEach(() => { jest.clearAllMocks(); }); diff --git a/plugin-hrm-form/src/translations/index.ts b/plugin-hrm-form/src/translations/index.ts index 42540dafb8..0423eb2852 100644 --- a/plugin-hrm-form/src/translations/index.ts +++ b/plugin-hrm-form/src/translations/index.ts @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ +import Handlebars from 'handlebars'; import { Manager } from '@twilio/flex-ui'; import { getDefinitionVersions } from '../hrmConfig';