@@ -30,7 +30,7 @@ public function test_resolve_script(): void
3030
3131 $ this ->assertSame (
3232 expected: [
33- '<script type="module" src="build/assets/main-YJD4Cw3J.js"></script> ' ,
33+ '<script type="module" src="/ build/assets/main-YJD4Cw3J.js"></script> ' ,
3434 ],
3535 actual: $ resolver ->resolveTags (['src/main.ts ' ]),
3636 );
@@ -46,8 +46,8 @@ public function test_resolve_script_with_css(): void
4646
4747 $ this ->assertSame (
4848 expected: [
49- '<link rel="stylesheet" href="build/assets/main-DObprJ9K.css" /> ' ,
50- '<script type="module" src="build/assets/main-CK61jJwL.js"></script> ' ,
49+ '<link rel="stylesheet" href="/ build/assets/main-DObprJ9K.css" /> ' ,
50+ '<script type="module" src="/ build/assets/main-CK61jJwL.js"></script> ' ,
5151 ],
5252 actual: $ resolver ->resolveTags (['src/main.ts ' ]),
5353 );
@@ -73,16 +73,16 @@ public function test_resolve_script_with_prefetching(PrefetchStrategy $strategy)
7373
7474 $ tags = $ resolver ->resolveTags (['resources/js/app.js ' ]);
7575
76- $ this ->assertContains ('<link rel="modulepreload" href="build/assets/index-BSdK3M0e.js" nonce="123" /> ' , $ tags );
77- $ this ->assertContains ('<link rel="stylesheet" href="build/assets/index-B3s1tYeC.css" nonce="123" /> ' , $ tags );
78- $ this ->assertContains ('<script type="module" src="build/assets/app-lliD09ip.js" nonce="123"></script> ' , $ tags );
76+ $ this ->assertContains ('<link rel="modulepreload" href="/ build/assets/index-BSdK3M0e.js" nonce="123" /> ' , $ tags );
77+ $ this ->assertContains ('<link rel="stylesheet" href="/ build/assets/index-B3s1tYeC.css" nonce="123" /> ' , $ tags );
78+ $ this ->assertContains ('<script type="module" src="/ build/assets/app-lliD09ip.js" nonce="123"></script> ' , $ tags );
7979
8080 if ($ strategy !== PrefetchStrategy::NONE ) {
8181 $ this ->assertStringContainsString ('nonce="123 ' , $ tags [3 ]);
8282 $ this ->assertStringContainsString (
8383 needle: <<<JS
84- [{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/index-B3s1tYeC.css"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/index-BSdK3M0e.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/_plugin-vue_export-helper-DlAUqK2U.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/ApplicationLogo-BhIZH06z.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/GuestLayout-BY3LC-73.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/TextInput-C8CCB_U_.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/PrimaryButton-DuXwr-9M.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/ConfirmPassword-CDwcgU8E.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/ForgotPassword-B0WWE0BO.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/Login-DAFSdGSW.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/Register-CfYQbTlA.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/ResetPassword-BNl7a4X1.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/VerifyEmail-CyukB_SZ.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/AuthenticatedLayout-DfWF52N1.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/Dashboard-DM_LxQy2.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/DeleteUserForm-B1oHFaVP.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/UpdatePasswordForm-CaeWqGla.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/UpdateProfileInformationForm-CJwkYwQQ.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/Edit-CYV2sXpe.js"},{"rel":"prefetch","fetchpriority":"low","href":"build\/assets\/Welcome-D_7l79PQ.js"}]
85- JS ,
84+ [{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/index-B3s1tYeC.css"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/index-BSdK3M0e.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/_plugin-vue_export-helper-DlAUqK2U.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/ApplicationLogo-BhIZH06z.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/GuestLayout-BY3LC-73.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/TextInput-C8CCB_U_.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/PrimaryButton-DuXwr-9M.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/ConfirmPassword-CDwcgU8E.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/ForgotPassword-B0WWE0BO.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/Login-DAFSdGSW.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/Register-CfYQbTlA.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/ResetPassword-BNl7a4X1.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/VerifyEmail-CyukB_SZ.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/AuthenticatedLayout-DfWF52N1.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/Dashboard-DM_LxQy2.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/DeleteUserForm-B1oHFaVP.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/UpdatePasswordForm-CaeWqGla.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/UpdateProfileInformationForm-CJwkYwQQ.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/Edit-CYV2sXpe.js"},{"rel":"prefetch","fetchpriority":"low","href":"\/build\/assets\/Welcome-D_7l79PQ.js"}]
85+ JS ,
8686 haystack: $ tags [3 ],
8787 );
8888 }
0 commit comments