Add global mock for webpack csp var

This commit is contained in:
Jake McDermott
2020-12-08 11:47:29 -05:00
parent ab61675c2d
commit c120b731a4

View File

@@ -19,3 +19,8 @@ global.console = {
...console, ...console,
debug: jest.fn(), debug: jest.fn(),
}; };
// This global variable is part of our Content Security Policy framework
// and so this mock ensures that we don't encounter a reference error
// when running the tests
global.__webpack_nonce__ = null;