From 48d229dde16ddb775f1805b56d105d1ba80f24e0 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 16 Jul 2022 13:58:44 -0500 Subject: [PATCH] =?UTF-8?q?Import=20scanner=20the=20same=20way=20it?= =?UTF-8?q?=E2=80=99s=20imported=20in=20usage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/scanner/client.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/scanner/client.test.ts b/test/scanner/client.test.ts index 3a4ca58..0e326fb 100644 --- a/test/scanner/client.test.ts +++ b/test/scanner/client.test.ts @@ -8,8 +8,6 @@ import { import { createApp } from 'vue' -import AppFilesScanner from '~/helpers/app-files-scanner.js' - // import { // isString // } from '~/helpers/check-types.js' @@ -31,6 +29,8 @@ function buildVueInstance () { } test('Can initialize AppFilesScanner within Vite context', async () => { + const { default: AppFilesScanner } = await import('~/helpers/app-files-scanner.js') + const vueInstance:any = buildVueInstance() const scanner = new AppFilesScanner({