diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6939340..80fba103 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,6 @@ jobs: node-version: 16 cache: 'yarn' - run: yarn install - - run: yarn lint - run: yarn test:webpack4 test-webpack5: @@ -30,5 +29,4 @@ jobs: node-version: 16 cache: 'yarn' - run: yarn install - - run: yarn build - run: yarn test diff --git a/package.json b/package.json index aab96dd2..1b078afa 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "build": "tsc", "pretest": "tsc", "test": "jest", + "pretest:webpack4": "tsc", "test:webpack4": "WEBPACK4=true jest", "dev-example": "node example/devServer.js --config example/webpack.config.js --inline --hot", "build-example": "rm -rf example/dist && webpack --config example/webpack.config.js --env.prod", diff --git a/test/utils.ts b/test/utils.ts index 459e0f1d..598e848e 100644 --- a/test/utils.ts +++ b/test/utils.ts @@ -5,10 +5,9 @@ import merge from 'webpack-merge' import hash from 'hash-sum' // import MiniCssExtractPlugin from 'mini-css-extract-plugin' import { fs as mfs } from 'memfs' - import { JSDOM, VirtualConsole } from 'jsdom' - -import { VueLoaderPlugin, VueLoaderOptions } from '../dist/index' +import { VueLoaderPlugin } from '..' +import type { VueLoaderOptions } from '..' const baseConfig: webpack.Configuration = { mode: 'development',