From 632772b69402282bf2817f05a01e116ac5880f78 Mon Sep 17 00:00:00 2001 From: zhuoli Date: Mon, 27 Mar 2023 16:24:56 +0800 Subject: [PATCH] Ignore tsc check for native imports Signed-off-by: zhuoli Change-Id: I35ed570469ff6e063df6a83f4e0f471f41d0db49 --- .../entry/src/main/ets/test/NativeApiStringTest.ets | 1 + .../entry/src/main/ets/test/BudnleNdkNativeTest.ets | 1 + .../entry/src/main/ets/test/NativeApiStringTest.ets | 3 ++- .../hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js | 1 + .../image_ndk_test/entry/src/main/ets/test/NativeApiTest.ets | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arkui/ace_napi_test/entry/src/main/ets/test/NativeApiStringTest.ets b/arkui/ace_napi_test/entry/src/main/ets/test/NativeApiStringTest.ets index 6e462b33a..ad8d6d03d 100644 --- a/arkui/ace_napi_test/entry/src/main/ets/test/NativeApiStringTest.ets +++ b/arkui/ace_napi_test/entry/src/main/ets/test/NativeApiStringTest.ets @@ -15,6 +15,7 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "hypium/index" +// @ts-ignore import napitest from 'libnapitest.so' diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/ets/test/BudnleNdkNativeTest.ets b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/ets/test/BudnleNdkNativeTest.ets index 6bcd38149..7a0f37de3 100755 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/ets/test/BudnleNdkNativeTest.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/ets/test/BudnleNdkNativeTest.ets @@ -14,6 +14,7 @@ */ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "hypium/index" +// @ts-ignore import bundlendk from 'libbundlendk.so' const BUNDLE_NAME = "com.actsbundle.napitest" diff --git a/global/global_napi_test/entry/src/main/ets/test/NativeApiStringTest.ets b/global/global_napi_test/entry/src/main/ets/test/NativeApiStringTest.ets index edc32f81e..70927e617 100644 --- a/global/global_napi_test/entry/src/main/ets/test/NativeApiStringTest.ets +++ b/global/global_napi_test/entry/src/main/ets/test/NativeApiStringTest.ets @@ -16,6 +16,7 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index' import resManager from '@ohos.resourceManager' +// @ts-ignore import ndk from 'libresmgrndk.so' export default function abilityTest() { @@ -48,4 +49,4 @@ export default function abilityTest() { done(); }) }) -} \ No newline at end of file +} diff --git a/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js b/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js index 517cc8272..2c080f762 100644 --- a/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js +++ b/hiviewdfx/hilogtest/hilogjstest/src/main/js/test/HilogJsTest.js @@ -14,6 +14,7 @@ */ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '@ohos/hypium' import hilog from '@ohos.hilog' +// @ts-ignore import hilogndk from "libhilogndk.so" export default function HilogJsTest() { diff --git a/multimedia/image/image_js_standard/image_ndk_test/entry/src/main/ets/test/NativeApiTest.ets b/multimedia/image/image_js_standard/image_ndk_test/entry/src/main/ets/test/NativeApiTest.ets index 3c247d8c1..d3303782a 100644 --- a/multimedia/image/image_js_standard/image_ndk_test/entry/src/main/ets/test/NativeApiTest.ets +++ b/multimedia/image/image_js_standard/image_ndk_test/entry/src/main/ets/test/NativeApiTest.ets @@ -16,6 +16,7 @@ // @ts-nocheck import image from '@ohos.multimedia.image' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index' +// @ts-ignore import mypixelmap from "libimagePixelmap.so" export default function nativeApiImageJsunit() { -- GitLab