diff --git a/.github/workflows/windows-tests.yml b/.github/workflows/windows-tests.yml new file mode 100644 index 0000000..2b5f8b0 --- /dev/null +++ b/.github/workflows/windows-tests.yml @@ -0,0 +1,25 @@ +name: Windows Tests + +on: + merge_group: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + windows-tests: + runs-on: windows-latest + steps: + - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 + + - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 + with: + node-version-file: 'package.json' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run Tests + run: npm test -- --no-watch 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', () => {