From 01ea79e611e36bc067e98427d270a7712766ab56 Mon Sep 17 00:00:00 2001 From: Ryan Waskiewicz <ryanwaskiewicz@gmail.com> Date: Sat, 4 May 2024 14:25:11 -0400 Subject: [PATCH] fix unit tests --- src/contributions/html-contributions.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/contributions/html-contributions.test.ts b/src/contributions/html-contributions.test.ts index 64d9b9c..b19d5d2 100644 --- a/src/contributions/html-contributions.test.ts +++ b/src/contributions/html-contributions.test.ts @@ -2,10 +2,11 @@ import { beforeEach, describe, expect, it } from 'vitest'; import { generateElementInfo } from './html-contributions'; import { ElementInfo } from '../index'; import { ComponentCompilerMeta } from '@stencil/core/internal'; +import { join } from 'node:path'; const MOCK_STENCIL_ROOT_DIR = '/'; const MOCK_CLASS_COMPONENT_NAME = 'StubCmp'; -const MOCK_MODULE_PATH = 'some/stubbed/path/my-component.tsx'; +const MOCK_MODULE_PATH = join('some', 'stubbed', 'path', 'my-component.tsx'); describe('generateElementInfo', () => { it('returns an empty array when no components are provided', () => {