mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
Add global mock for webpack csp var
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user