From 905d42c00b6ec9af09d53181f41411d04d740d1b Mon Sep 17 00:00:00 2001 From: yurj26 <1816387074@qq.com> Date: Mon, 17 Jul 2023 15:37:17 +0800 Subject: [PATCH] fix: test --- main.js | 10 ++++++++++ pages/index/basicTest.test.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 main.js diff --git a/main.js b/main.js new file mode 100644 index 0000000..f0074da --- /dev/null +++ b/main.js @@ -0,0 +1,10 @@ +import App from './App' + +import { createSSRApp } from 'vue' +export function createApp() { + const app = createSSRApp(App) + + return { + app + } +} \ No newline at end of file diff --git a/pages/index/basicTest.test.js b/pages/index/basicTest.test.js index b0539ee..35a3c67 100644 --- a/pages/index/basicTest.test.js +++ b/pages/index/basicTest.test.js @@ -3,7 +3,7 @@ const ERR_RE = /expected:<(.*)> but was:<(.*)>/ let result; beforeAll(async () => { - await program.reLaunch('/pages/test/index') + await program.reLaunch('/pages/index/basicTest') page = await program.currentPage() await page.waitFor(3000); const data = await page.data(); -- GitLab