The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;
use lib 't/issues/gh-1216/lib';

use Test::More      'tests' => 2;
use Test::Fatal     qw<exception>;
use Module::Runtime qw<require_module>;

my $app;
is(
    exception {
        require_module('App');
        $app = App->to_app;
    },
    undef,
    'No exception when creating new app',
);

isa_ok( $app, 'CODE' );