Skip to content

Commit

Permalink
test: fix webpack tests failing because wrong import
Browse files Browse the repository at this point in the history
  • Loading branch information
Ffloriel committed Sep 29, 2024
1 parent 87d15b7 commit 515896a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 28 deletions.
38 changes: 20 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions packages/purgecss-webpack-plugin/__tests__/.eslintrc

This file was deleted.

3 changes: 1 addition & 2 deletions packages/purgecss-webpack-plugin/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ describe("Webpack integration", () => {
process.chdir(testDirectory);

const webpackConfig = await import(`${testDirectory}/webpack.config.js`);
// const webpackConfig = require(`${testDirectory}/webpack.config.js`);

await runWebpack({
...webpackConfig,
...webpackConfig.default,
output: {
path: outputDirectory,
},
Expand Down
6 changes: 3 additions & 3 deletions packages/purgecss-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
},
"dependencies": {
"purgecss": "^6.0.0",
"webpack": ">=5.0.0"
"webpack": ">=5.95.0"
},
"bugs": {
"url": "https://github.com/FullHuman/purgecss/issues"
},
"devDependencies": {
"@types/webpack-sources": "^3.2.0",
"@types/webpack-sources": "^3.2.3",
"css-loader": "^7.1.2",
"mini-css-extract-plugin": "^2.5.0"
"mini-css-extract-plugin": "^2.9.1"
},
"peerDependencies": {
"webpack": ">=5.0.0"
Expand Down

0 comments on commit 515896a

Please sign in to comment.