Skip to content

Commit b9f3bf5

Browse files
committed
fix: make composer test pass
- Fix PHPStan OOM by adding --memory-limit=512M - Fix test:unit coverage by loading Xdebug explicitly (Herd doesn't load it by default) and dropping --parallel (incompatible with --exactly) - Apply Rector fix: redirect()->route() → to_route() - Apply frontend formatting fixes (vp fmt) - Fix browser test: assert "Log in" instead of "Laravel"
1 parent b80f4ee commit b9f3bf5

29 files changed

Lines changed: 10 additions & 65 deletions

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@
9191
"rector --dry-run",
9292
"bun run test:lint"
9393
],
94-
"test:unit": "XDEBUG_MODE=\"coverage\" pest --parallel --coverage --exactly=100.0",
94+
"test:unit": "php -d zend_extension=/Applications/Herd.app/Contents/Resources/xdebug/xdebug-85-arm64.so -d xdebug.mode=coverage vendor/bin/pest --coverage --exactly=100.0",
9595
"test:types": [
96-
"phpstan",
96+
"phpstan --memory-limit=512M",
9797
"bun run test:types"
9898
],
9999
"test": [

resources/js/components/AlertError.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ type Props = {
88
title?: string;
99
};
1010
11-
1211
const props = withDefaults(defineProps<Props>(), {
1312
title: 'Something went wrong.',
1413
});
1514
16-
1715
const uniqueErrors = computed(() => Array.from(new Set(props.errors)));
1816
</script>
1917

resources/js/components/AppContent.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ type Props = {
88
class?: string;
99
};
1010
11-
1211
const props = withDefaults(defineProps<Props>(), {
1312
variant: 'sidebar',
1413
});

resources/js/components/AppHeader.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,17 @@ type Props = {
4242
breadcrumbs?: BreadcrumbItem[];
4343
};
4444
45-
4645
const props = withDefaults(defineProps<Props>(), {
4746
breadcrumbs: () => [],
4847
});
4948
50-
5149
const page = usePage();
5250
const auth = computed(() => page.props.auth);
5351
const { isCurrentUrl, whenCurrentUrl } = useCurrentUrl();
5452
55-
5653
const activeItemStyles =
5754
'text-neutral-900 dark:bg-neutral-800 dark:text-neutral-100';
5855
59-
6056
const mainNavItems: NavItem[] = [
6157
{
6258
title: 'Dashboard',
@@ -65,7 +61,6 @@ const mainNavItems: NavItem[] = [
6561
},
6662
];
6763
68-
6964
const rightNavItems: NavItem[] = [
7065
{
7166
title: 'Repository',

resources/js/components/AppLogoIcon.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ defineOptions({
55
inheritAttrs: false,
66
});
77
8-
98
type Props = {
109
className?: HTMLAttributes['class'];
1110
};
1211
13-
1412
defineProps<Props>();
1513
</script>
1614

resources/js/components/AppShell.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ type Props = {
77
variant?: AppVariant;
88
};
99
10-
1110
withDefaults(defineProps<Props>(), {
1211
variant: 'sidebar',
1312
});
1413
15-
1614
const isOpen = usePage().props.sidebarOpen;
1715
</script>
1816

resources/js/components/AppSidebar.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const mainNavItems: NavItem[] = [
2525
},
2626
];
2727
28-
2928
const footerNavItems: NavItem[] = [
3029
{
3130
title: 'Repository',

resources/js/components/AppearanceTabs.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { useAppearance } from '@/composables/useAppearance';
44
55
const { appearance, updateAppearance } = useAppearance();
66
7-
87
const tabs = [
98
{ value: 'light', Icon: Sun, label: 'Light' },
109
{ value: 'dark', Icon: Moon, label: 'Dark' },

resources/js/components/Breadcrumbs.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ type Props = {
1414
breadcrumbs: BreadcrumbItemType[];
1515
};
1616
17-
1817
defineProps<Props>();
1918
</script>
2019

resources/js/components/Heading.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ type Props = {
55
variant?: 'default' | 'small';
66
};
77
8-
98
withDefaults(defineProps<Props>(), {
109
variant: 'default',
1110
});

0 commit comments

Comments
 (0)