import {test} from 'node:test'; import assert from 'node:assert/strict'; test('installable development entry defaults automation off and imports no gateway',async()=>{ const once=new Map(),settings=new Map(),module={};let registrations=0; globalThis.Hooks={once(e,fn){once.set(e,fn);},on(){registrations++;},off(){}}; globalThis.game={user:{isGM:true},playlists:[],modules:{get:()=>module},settings:{register(ns,key,definition){settings.set(key,definition);},get(ns,key){return settings.get(key).default;}}}; globalThis.ui={notifications:{warn(){}}}; try{ await import('../../src/foundry/module.mjs');once.get('init')();once.get('ready')(); assert.equal(settings.get('enabled').default,false);assert.equal(settings.get('ownedPlaylistIds').default,''); assert.equal(registrations,2);assert.equal(typeof module.api.mountConfiguration,'function');assert.throws(()=>module.api.setOverrides([]));module.api.dispose(); }finally{delete globalThis.game;delete globalThis.Hooks;delete globalThis.ui;} });