The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

use strict;
my $app = sub { [ 200, [ 'Content-Type' => 'text/html' ], ['<head></head>'] ] };
test_psgi app => Plack::Middleware::AutoRefresh->wrap($app), client => sub {
my $cb = shift;
my $req = GET 'http://localhost/';
my $res = $cb->($req);
like $res->content, qr/<head><script>/;
};
done_testing;