mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-09 19:04:33 -04:00
Writing tests for chartDashboard.js
This commit is contained in:
11
tests/javascripts/support/jest.setup.js
Normal file
11
tests/javascripts/support/jest.setup.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
// Polyfill holes in JSDOM
|
||||
require('./polyfills.js');
|
||||
|
||||
// Set up jQuery
|
||||
global.$ = global.jQuery = require('jquery');
|
||||
|
||||
// Load module code
|
||||
require('govuk_frontend_toolkit/javascripts/govuk/modules.js');
|
||||
Reference in New Issue
Block a user