mozilla / addons

☂ Umbrella repository for Mozilla Addons ✨
Other
125 stars 41 forks source link

Server-specific tests should run w/ Jest testEnvironment: 'node' #2162

Open ziir opened 2 years ago

ziir commented 2 years ago

Uncovered in https://github.com/mozilla/addons-frontend/pull/11593#discussion_r899031000. Some server-specific tests run w/ Jest's testEnvironment: 'jsdom', which is the project's Jest config default. As a result, some globals are missing or extraneous & test environment is not suited. This can be solved by either:

See also:

┆Issue is synchronized with this Jira Task

KevinMind commented 4 months ago

Old Jira Ticket: https://mozilla-hub.atlassian.net/browse/ADDFRNT-84