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