feat: polir delight editorial no site público (MAN-139) #6

Open
manoel-freitas wants to merge 4 commits from feat/man-139-public-delight-polish into main
2 changed files with 12 additions and 4 deletions
Showing only changes of commit 444153bf3d - Show all commits

View File

@@ -72,9 +72,19 @@ class HeritageEditorialTokensTest extends TestCase
{ {
$vite = (string) file_get_contents(base_path('vite.config.js')); $vite = (string) file_get_contents(base_path('vite.config.js'));
$this->assertMatchesRegularExpression(
"/^import \\{ fontsource \\} from 'laravel-vite-plugin\\/fonts';/m",
$vite,
);
$this->assertDoesNotMatchRegularExpression(
'/^import \\{[^}]*\\bbunny\\b/m',
$vite,
);
$this->assertDoesNotMatchRegularExpression(
'/^import \\{[^}]*\\bgoogle\\b/m',
$vite,
);
$this->assertStringContainsString("fontsource('EB Garamond'", $vite); $this->assertStringContainsString("fontsource('EB Garamond'", $vite);
$this->assertStringNotContainsString('bunny(', $vite);
$this->assertStringNotContainsString('google(', $vite);
$this->assertStringNotContainsString('Instrument Sans', $vite); $this->assertStringNotContainsString('Instrument Sans', $vite);
} }

View File

@@ -76,8 +76,6 @@ export default defineConfig({
], ],
refresh: true, refresh: true,
fonts: [ fonts: [
// fontsource reads node_modules so `vite build` stays offline.
// bunny() timed out on fonts.bunny.net in CI (run 31, job feature).
fontsource('EB Garamond', { fontsource('EB Garamond', {
weights: [400, 500, 600], weights: [400, 500, 600],
}), }),