Skip to content

Commit 6ab8b62

Browse files
authored
fix: integration test cases (#7792)
1 parent d419a37 commit 6ab8b62

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/integration/i18n/app-ssr/tests/ssg.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ describe('ssg', () => {
1111
const appDir = projectDir;
1212
await modernBuild(appDir, ['--config', 'modern.ssg.config.ts']);
1313

14-
const zhHtmlPath = path.join(appDir, './dist/html/index/zh/index.html');
15-
const enHtmlPath = path.join(appDir, './dist/html/index/en/index.html');
14+
const zhHtmlPath = path.join(appDir, './dist-ssg/html/index/zh/index.html');
15+
const enHtmlPath = path.join(appDir, './dist-ssg/html/index/en/index.html');
1616
const zhContent = fs.readFileSync(zhHtmlPath, 'utf-8');
1717
const enContent = fs.readFileSync(enHtmlPath, 'utf-8');
1818
expect(zhContent).toMatch('你好,世界');

tests/integration/i18n/routes-ssr/test/ssg.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ describe('ssg', () => {
1313

1414
const zhAboutHtmlPath = path.join(
1515
appDir,
16-
'./dist/html/index/zh/about/index.html',
16+
'./dist-ssg/html/index/zh/about/index.html',
1717
);
1818
const enAboutHtmlPath = path.join(
1919
appDir,
20-
'./dist/html/index/en/about/index.html',
20+
'./dist-ssg/html/index/en/about/index.html',
2121
);
2222
const zhAboutContent = fs.readFileSync(zhAboutHtmlPath, 'utf-8');
2323
const enAboutContent = fs.readFileSync(enAboutHtmlPath, 'utf-8');

0 commit comments

Comments
 (0)