diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ad4e1e9..8a14a18 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,6 @@ name: CI -on: [push, pull_request] +on: [push] defaults: run: @@ -35,3 +35,8 @@ jobs: - name: Run unit tests run: yarn test:unit --coverage + + - uses: actions/upload-artifact@v2 + with: + name: coverage + path: coverage/ diff --git a/jest.config.js b/jest.config.js index cc3c947..ce203ad 100644 --- a/jest.config.js +++ b/jest.config.js @@ -6,7 +6,6 @@ module.exports = { transform: { '^.+\\.ts$': 'ts-jest', }, - collectCoverageFrom: ['/src/.*\\.ts'], coveragePathIgnorePatterns: ['.*\\.spec\\.ts'], globals: { 'ts-jest': { diff --git a/src/index.spec.ts b/src/index.spec.ts index ba94d4a..c3bf002 100644 --- a/src/index.spec.ts +++ b/src/index.spec.ts @@ -4,7 +4,7 @@ describe('Rollup Plugin Vue', () => { describe('transform', () => { let transform: (code: string, fileName: string) => Promise<{ code: string }> beforeEach(() => { - transform = PluginVue().transform as any + transform = PluginVue({ customBlocks: ['*'] }).transform as any }) it('should transform