@@ -70,13 +70,16 @@ copyFileSync(join(root, 'packages/stx/test-utils/happy-dom.ts'), join(smokeRoot,
7070// Shared emit authoring is qualified from exactly the archives being released.
7171// Only test harnesses are copied; compiler and native signal code stay installed.
7272copyFileSync ( join ( root , 'packages/stx/test-utils/browser-fixture.ts' ) , join ( smokeRoot , 'browser-fixture.ts' ) )
73- for ( const fixture of [ 'component-library-emits.test.ts' , 'component-library-emits-browser.test.ts' ] ) {
73+ copyFileSync ( join ( root , 'packages/stx/test-utils/component-method-scope.ts' ) , join ( smokeRoot , 'component-method-scope.ts' ) )
74+ for ( const fixture of [ 'component-library-emits.test.ts' , 'component-library-emits-browser.test.ts' , 'component-library-method-scope.test.ts' , 'component-library-method-scope-browser.test.ts' ] ) {
7475 const test = readFileSync ( join ( root , 'packages/stx/test/web-components' , fixture ) , 'utf8' )
7576 . replaceAll ( "'../../src/component-library'" , "'@stacksjs/stx/component-library'" )
7677 . replaceAll ( "'../../src/process'" , "'@stacksjs/stx/process'" )
7778 . replace ( "new URL('../../src/signals-api.ts', import.meta.url).pathname" , "new URL(import.meta.resolve('@stacksjs/stx/signals-api')).pathname" )
79+ . replace ( "new URL('../../dist/signals-api.js', import.meta.url).pathname" , "new URL(import.meta.resolve('@stacksjs/stx/signals-api')).pathname" )
7880 . replaceAll ( "'../../src/temp-dir'" , "'@stacksjs/stx/temp-dir'" )
7981 . replaceAll ( "'../../test-utils/browser-fixture'" , "'./browser-fixture'" )
82+ . replaceAll ( "'../../test-utils/component-method-scope'" , "'./component-method-scope'" )
8083 . replace ( "const buildComponentLibrary = process.env.STX_LIBRARY_DIST ? (await import('../../dist/component-library.js')).buildComponentLibrary : sourceBuild" , 'const buildComponentLibrary = sourceBuild' )
8184 writeFileSync ( join ( smokeRoot , fixture ) , test )
8285}
@@ -88,10 +91,10 @@ for (const flags of [[], ['--frozen-lockfile']]) {
8891 if ( normalLock ) assert . equal ( lock , normalLock , 'Frozen install changed the qualified lockfile' )
8992 else normalLock = lock
9093 await verifyPublicTypes ( smokeRoot , publicTypeArchives , flags . length ? 'frozen' : 'normal' , { kind : 'prepublication-original-archives' , url : registry . url , requests : registry . requests } )
91- await run ( [ process . execPath , '--no-env-file' , 'test' , '--preload' , './happy-dom.ts' , './component-library-emits.test.ts' ] )
94+ await run ( [ process . execPath , '--no-env-file' , 'test' , '--preload' , './happy-dom.ts' , './component-library-emits.test.ts' , './component-library-method-scope.test.ts' ] )
9295 // Bun's Chrome bridge discovers its executable through the real desktop HOME;
9396 // archive installation and strict/SSR consumers retain their isolated HOME.
94- await run ( [ process . execPath , '--no-env-file' , 'test' , '--preload' , './happy-dom.ts' , './component-library-emits-browser.test.ts' ] , smokeRoot ,
97+ await run ( [ process . execPath , '--no-env-file' , 'test' , '--preload' , './happy-dom.ts' , './component-library-emits-browser.test.ts' , './component-library-method-scope-browser.test.ts' ] , smokeRoot ,
9598 process . env . STX_BROWSER_HOME ? { HOME : process . env . STX_BROWSER_HOME } : { } )
9699 console . log ( `native emits original-archive ${ flags . length ? 'frozen' : 'normal' } consumer passed` )
97100}
0 commit comments