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
No known key found for this signature in database
GPG Key ID: 0E56ED990CDFCB4F

View File

@ -19,3 +19,8 @@ global.console = {
...console,
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;