lazywithclass/winston-cloudwatch

Fix tests and github workflow

Opened this issue · 0 comments

Make test returns the following error and github workflow seems like it never worked properly

$ make test                                                                                                                                               22:14:22 15/08/2022
./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha test -- --recursive --require should -R dot

ReferenceError: navigator is not defined
    at Object.<anonymous> (/home/lazywithclass/workspace/winston-cloudwatch/test/aws/dist/docutils/writers/s5_html/themes/default/slides.js:18:12)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Object.Module._extensions.<computed> [as .js] (/home/lazywithclass/workspace/winston-cloudwatch/node_modules/istanbul/lib/hook.js:109:37)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:170:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
    at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
    at async formattedImport (/home/lazywithclass/workspace/winston-cloudwatch/node_modules/mocha/lib/nodejs/esm-utils.js:7:14)
    at async Object.exports.requireOrImport (/home/lazywithclass/workspace/winston-cloudwatch/node_modules/mocha/lib/nodejs/esm-utils.js:48:32)
    at async Object.exports.loadFilesAsync (/home/lazywithclass/workspace/winston-cloudwatch/node_modules/mocha/lib/nodejs/esm-utils.js:103:20)
    at async singleRun (/home/lazywithclass/workspace/winston-cloudwatch/node_modules/mocha/lib/cli/run-helpers.js:125:3)
    at async Object.exports.handler (/home/lazywithclass/workspace/winston-cloudwatch/node_modules/mocha/lib/cli/run.js:374:5)
No coverage information was collected, exit without writing coverage information
make: *** [Makefile:13: test] Error 1