Test updates - still need more coverage

This commit is contained in:
Jonathan Bobel
2024-07-18 12:36:49 -04:00
parent f0b4fbe732
commit 47bb1e4c8c
7 changed files with 392 additions and 288 deletions

View File

@@ -7,5 +7,11 @@ require('./polyfills.js');
// Set up jQuery
global.$ = global.jQuery = require('jquery');
// tests/jest.setup.js
global.io = jest.fn().mockReturnValue({
on: jest.fn(),
emit: jest.fn()
});
// Load module code
require('govuk_frontend_toolkit/javascripts/govuk/modules.js');