diff --git a/.github/workflows/test-multiple-versions.yml b/.github/workflows/test-multiple-versions.yml index 5a872361..2fc0a7fd 100644 --- a/.github/workflows/test-multiple-versions.yml +++ b/.github/workflows/test-multiple-versions.yml @@ -49,6 +49,7 @@ jobs: cache: 'pnpm' cache-dependency-path: '**/pnpm-lock.yaml' - run: pnpm install --frozen-lockfile + - run: pnpm build # for macro test - name: Install legacy testing-library if: ${{ startsWith(matrix.react, '16.') || startsWith(matrix.react, '17.') }} run: pnpm add -D @testing-library/react@12.1.4 diff --git a/.github/workflows/test-old-typescript.yml b/.github/workflows/test-old-typescript.yml index 0697f65a..400fc727 100644 --- a/.github/workflows/test-old-typescript.yml +++ b/.github/workflows/test-old-typescript.yml @@ -66,7 +66,7 @@ jobs: - name: Install old TypeScript run: | pnpm add -D typescript@${{ matrix.typescript }} - rm node_modules/.pnpm/parse5*/node_modules/parse5/dist/*.d.ts + rm node_modules/.pnpm/parse5@*/node_modules/parse5/dist/*.d.ts - name: Patch testing setup for Old TS if: ${{ matrix.typescript == '4.4.4' || matrix.typescript == '4.3.5' || matrix.typescript == '4.2.3' || matrix.typescript == '4.1.5' || matrix.typescript == '4.0.5' || startsWith(matrix.typescript, '3.') }} run: | @@ -76,6 +76,7 @@ jobs: run: | pnpm add -D @testing-library/user-event@12.1.7 @testing-library/react@11.0.4 rm node_modules/vitest/dist/*.d.ts + rm node_modules/.pnpm/@types+babel__traverse@*/node_modules/@types/babel__traverse/*.d.ts echo "declare module 'vitest'" >> ./src/types.d.ts - name: Test ${{ matrix.typescript }} run: |