From f91b4797291e8a79269548a98a847335e7b91251 Mon Sep 17 00:00:00 2001 From: Yuzuki Arai Date: Wed, 23 Aug 2023 19:12:30 +0900 Subject: [PATCH] test: add `chrome` object to `globals` --- jest.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jest.config.js b/jest.config.js index c93726a56..36fa1cce8 100644 --- a/jest.config.js +++ b/jest.config.js @@ -2,4 +2,11 @@ module.exports = { transform: { "^.+\\.(t|j)sx?$": ["@swc/jest"], }, + globals: { + chrome: { + i18n: { + getMessage: (key) => key, + }, + }, + }, }