More tests fixed

This commit is contained in:
alexjanousekGSA
2025-06-16 20:17:43 -04:00
parent 468216fdf9
commit f12a977608
5 changed files with 125 additions and 37 deletions

View File

@@ -1,8 +1,11 @@
const fs = require('fs');
const path = require('path');
// Set up jQuery
// Fill in the gaps where JSDOM doesn't quite match real browsers
require('./polyfills.js');
// Make jQuery available everywhere
global.$ = global.jQuery = require('jquery');
// Load module code
// Bring in the GOV.UK modules system
require('govuk_frontend_toolkit/javascripts/govuk/modules.js');