mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Add global mock for webpack csp var
This commit is contained in:
parent
ab61675c2d
commit
c120b731a4
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user