Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Migration to webpack5 as test are failing #40

Open
AyoyimikaAjibade opened this issue Jan 15, 2022 · 0 comments
Open

Migration to webpack5 as test are failing #40

AyoyimikaAjibade opened this issue Jan 15, 2022 · 0 comments

Comments

@AyoyimikaAjibade
Copy link

AyoyimikaAjibade commented Jan 15, 2022

Please update your package to migrate to webpack5 as maintaining it in the Debian OS environment produces failing test as we try to build the package with webpack 5.65.0, while the support of webpack3 is deprecated here is a link to the bug report https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1001629

The failing test output looks like this while building with webpack 5.65.0

+ mocha -R spec --timeout=30000


  StatsWebpackPlugin
    1) generates `stats.json` file
    2) supports multi-compile mode and outputs one `stats.json` file


  0 passing (31s)
  2 failing

  1) StatsWebpackPlugin
       generates `stats.json` file:
     Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/ayoyimika/debian-js-packaging/stats-webpack-plugin/node-stats-webpack-plugin/test/plugin.js)
      at createTimeoutError (/usr/share/nodejs/mocha/lib/errors.js:498:15)
      at Test.Runnable._timeoutError (/usr/share/nodejs/mocha/lib/runnable.js:431:10)
      at Timeout.<anonymous> (/usr/share/nodejs/mocha/lib/runnable.js:246:24)
      at listOnTimeout (internal/timers.js:554:17)
      at processTimers (internal/timers.js:497:7)

  2) StatsWebpackPlugin
       supports multi-compile mode and outputs one `stats.json` file:
     Uncaught Error: ENOENT: no such file or directory, open '/home/ayoyimika/debian-js-packaging/stats-webpack-plugin/node-stats-webpack-plugin/test/output/stats.json'
      at Object.openSync (fs.js:462:3)
      at Object.readFileSync (fs.js:364:35)
      at /home/ayoyimika/debian-js-packaging/stats-webpack-plugin/node-stats-webpack-plugin/test/plugin.js:95:34
      at /usr/share/nodejs/webpack/lib/MultiCompiler.js:554:14
      at processQueueWorker (/usr/share/nodejs/webpack/lib/MultiCompiler.js:491:6)
      at processTicksAndRejections (internal/process/task_queues.js:79:11)

Thanks 🥂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant