blob: 800b34a4e57ce349dd892bd9c4ad97ee986384df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { JSDOM } from "jsdom";
import { ensureJQuery } from "../lib/ensure_jquery.js";
import { ensureGlobalNotCreated } from "../lib/ensure_global_not_created.js";
import { getJQueryModuleSpecifier } from "../lib/jquery-module-specifier.js";
const { window } = new JSDOM( "" );
const jQueryModuleSpecifier = getJQueryModuleSpecifier();
const { jQueryFactory } = await import( jQueryModuleSpecifier );
const jQuery = jQueryFactory( window );
ensureJQuery( jQuery );
ensureGlobalNotCreated();
|