mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-02 05:10:59 +00:00
refactor(ai): extract assistant into an official module (#749)
* feat(modules): expose host data boundaries * feat(modules): add frontend extension surfaces * refactor(ai): remove assistant from core * chore(ai): prepare the module extraction * fix(modules): load extension styles after the host bundle * chore(modules): lock SDK 3.3.0
This commit is contained in:
@@ -81,7 +81,12 @@ test('the application shell content-versions local module asset URLs', function
|
||||
Registry::registerStyle('layout-probe', $stylePath);
|
||||
|
||||
$html = view('app')->render();
|
||||
$layout = File::get(resource_path('views/app.blade.php'));
|
||||
$hostAssetPosition = strpos($layout, "@vite('resources/scripts/main.ts')");
|
||||
$moduleStylePosition = strpos($layout, 'Registry::allStyles()');
|
||||
|
||||
expect($html)->toContain('/modules/scripts/layout-probe?v='.ModuleAssetVersion::forPath($scriptPath))
|
||||
->toContain('/modules/styles/layout-probe?v='.ModuleAssetVersion::forPath($stylePath));
|
||||
->toContain('/modules/styles/layout-probe?v='.ModuleAssetVersion::forPath($stylePath))
|
||||
->and($hostAssetPosition)->not->toBeFalse()
|
||||
->and($moduleStylePosition)->toBeGreaterThan($hostAssetPosition);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user