Removed jquery

This commit is contained in:
Alex Janousek
2025-10-27 12:42:58 -04:00
parent 21a8b1784e
commit 950ff9ae35
15 changed files with 0 additions and 2493 deletions

View File

@@ -1,9 +1,6 @@
const helpers = require('./support/helpers');
beforeAll(() => {
// TODO: remove this when tests for sticky JS are written
require('../../app/assets/javascripts/stick-to-window-when-scrolling.js');
require('../../app/assets/javascripts/collapsibleCheckboxes.js');
});

View File

@@ -100,11 +100,6 @@ describe('copy to clipboard', () => {
});
test("It should tell any sticky JS present the page has changed", () => {
expect(window.NotifyModules.stickAtBottomWhenScrolling.recalculate).toHaveBeenCalled();
});
test("It should display the value", () => {

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +1,6 @@
const fs = require('fs');
const path = require('path');
// Set up jQuery
global.$ = global.jQuery = require('jquery');
// tests/jest.setup.js
global.io = jest.fn().mockReturnValue({

View File

@@ -3,6 +3,3 @@ const path = require('path');
// Fill in the gaps where JSDOM doesn't quite match real browsers
require('./polyfills.js');
// Make jQuery available everywhere
global.$ = global.jQuery = require('jquery');

View File

@@ -1,6 +1,3 @@
window.jQuery = null;
$ = null;
delete window.USWDS;
jest.restoreAllMocks();