From ec1f6be448e64b5990a23d2718b5a3f43dd556f0 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 19 Apr 2024 17:45:02 +0800 Subject: [PATCH] fix(tests): stacktrace --- packages/uni-uts-v1/__tests__/stacktrace.runtime.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/uni-uts-v1/__tests__/stacktrace.runtime.spec.ts b/packages/uni-uts-v1/__tests__/stacktrace.runtime.spec.ts index dead784f72..ae0a1d7e5e 100644 --- a/packages/uni-uts-v1/__tests__/stacktrace.runtime.spec.ts +++ b/packages/uni-uts-v1/__tests__/stacktrace.runtime.spec.ts @@ -18,6 +18,7 @@ at java.lang.reflect.Method.invoke(Native Method) at io.dcloud.uniapp.vue.shared.IndexKt$callFunction$invoke$1.invoke(index.kt:627) at io.dcloud.uniapp.vue.shared.IndexKt.callFunction(index.kt:638)`, { + language: 'kotlin', appid: '__UNI__XXXXXXX', cacheDir, } @@ -32,6 +33,7 @@ at java.lang.reflect.Method.invoke(Native Method) at io.dcloud.uniapp.vue.shared.IndexKt$callFunction$invoke$1.invoke(index.kt:627) at io.dcloud.uniapp.vue.shared.IndexKt.callFunction(index.kt:638)`, { + language: 'kotlin', appid: '__UNI__XXXXXXX', cacheDir, } @@ -47,6 +49,7 @@ at java.lang.reflect.Method.invoke(Native Method) at io.dcloud.uniapp.vue.shared.IndexKt$callFunction$invoke$1.invoke(index.kt:627) at io.dcloud.uniapp.vue.shared.IndexKt.callFunction(index.kt:638)`, { + language: 'kotlin', appid: '__UNI__XXXXXXX', cacheDir, } @@ -58,6 +61,7 @@ at io.dcloud.uniapp.vue.shared.IndexKt.callFunction(index.kt:638)`, at java.util.ArrayList.get(ArrayList.java:437) at uni.UNIXXXXXXX.IndexKt.test(index.kt:40)`, { + language: 'kotlin', appid: '__UNI__XXXXXXX', cacheDir, logType: 'warn', @@ -70,6 +74,7 @@ at uni.UNIXXXXXXX.IndexKt.test(index.kt:40)`, at java.util.ArrayList.get(ArrayList.java:437) at uni.UNIXXXXXXX.IndexKt.test(index.kt:40)`, { + language: 'kotlin', appid: '__UNI__XXXXXXX', cacheDir, logType: 'error', @@ -86,6 +91,7 @@ at uni.UNIXXXXXXX.IndexKt.test(index.kt:40)`, parseUTSJavaScriptRuntimeStacktrace( `app-service.js(5:60) ReferenceError:Can't find variable: a @app-service.js:5:60`, { + language: 'javascript', cacheDir, } ) @@ -99,6 +105,7 @@ callWithErrorHandling@uni-app-x-framework.js:2279:23 callWithAsyncErrorHandling@uni-app-x-framework.js:2286:38 @uni-app-x-framework.js:4763:45`, { + language: 'javascript', cacheDir, } ) -- GitLab