diff --git a/tests/integration/app-document/modern.config.ts b/tests/integration/app-document/modern.config.ts index ae1c0276038d..c227c288bf13 100644 --- a/tests/integration/app-document/modern.config.ts +++ b/tests/integration/app-document/modern.config.ts @@ -39,6 +39,7 @@ export default applyBaseConfig({ }, html: { favicon: './static/a.icon', + title: 'test-title', }, plugins: [routerPlugin(), tmpTest()], }); diff --git a/tests/integration/app-document/tests/index.test.ts b/tests/integration/app-document/tests/index.test.ts index 76fe9286b95d..4e84e77a4d05 100644 --- a/tests/integration/app-document/tests/index.test.ts +++ b/tests/integration/app-document/tests/index.test.ts @@ -150,6 +150,14 @@ describe('test dev and build', () => { ), ).toBe(true); }); + + test('should has title in Head', async () => { + const htmlWithDoc = fs.readFileSync( + path.join(appDir, 'dist', 'html/sub/index.html'), + 'utf-8', + ); + expect(htmlWithDoc.includes('