Unable to run TypeScript tests using the poi-preset-karma #264
padcom posted onGitHub
<!-- Please don't delete this template or we'll close your issue -->
<!-- Before creating an issue please make sure you are using the latest version of Poi. -->
Do you want to request a feature or report a bug? This is a bug report
<!-- Issues which contain questions or support requests will be closed. -->
What is the current behavior?
module not found:
- child_process: imported at ~/projects/poi-vue-hello/node_modules/karma/lib/server.js
- cluster: imported at ~/projects/poi-vue-hello/node_modules/log4js/lib/appenders/clustered.js
- dgram: imported at ~/projects/poi-vue-hello/node_modules/log4js/lib/appenders/logstashUDP.js
- fs: imported at ~/projects/poi-vue-hello/node_modules/chokidar/index.js
- hipchat-notifier: imported at ~/projects/poi-vue-hello/node_modules/log4js/lib/appenders/hipchat.js
- loggly: imported at ~/projects/poi-vue-hello/node_modules/log4js/lib/appenders/loggly.js
- mailgun-js: imported at ~/projects/poi-vue-hello/node_modules/log4js/lib/appenders/mailgun.js
- net: imported at ~/projects/poi-vue-hello/node_modules/log4js/lib/appenders/multiprocess.js
- nodemailer: imported at ~/projects/poi-vue-hello/node_modules/log4js/lib/appenders/smtp.js
- request: imported at ~/projects/poi-vue-hello/node_modules/useragent/lib/update.js
- slack-node: imported at ~/projects/poi-vue-hello/node_modules/log4js/lib/appenders/slack.js
- tls: imported at ~/projects/poi-vue-hello/node_modules/ws/lib/WebSocketServer.js
- yamlparser: imported at ~/projects/poi-vue-hello/node_modules/useragent/lib/update.js
FAIL Compiled with errors!
followed by a number of messages like
ERROR in ./node_modules/log4js/lib/appenders/smtp.js
Module not found: Error: Can't resolve 'nodemailer' in 'poi-vue-hello/node_modules/log4js/lib/appenders'
@ ./node_modules/log4js/lib/appenders/smtp.js 4:13-34
@ ./node_modules/log4js/lib/appenders ^\.\/.*$
@ ./node_modules/log4js/lib/log4js.js
@ ./node_modules/karma/lib/logger.js
@ ./node_modules/karma/lib/stopper.js
@ ./node_modules/karma/lib/index.js
@ ./test/unit/example.test.js
If the current behavior is a bug, please provide the steps to reproduce.
Please see the http://github.com/padcom/poi-vue-ts-minimal repository.
To observe the error run npm install
and then npm test
<!-- A great way to do this is to provide your configuration via a GitHub gist. -->
<!-- Best provide a minimal reproducible repo -->
What is the expected behavior? There is a single test that should always pass.
If this is a feature request, what is the motivation or use case for changing the behavior? No, it is a bug report
Please mention other relevant information such as the browser version, Node.js version, Poi version and Operating System. Linux, Node.js 8.8.0, poi 9.4.3