feat: polir delight editorial no site público (MAN-139) #6
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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],
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user