New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests are failing on windows #112
Comments
We’ll just have to fix things, and maybe add Windows testing as well so we
do not regress.
Il giorno ven 12 ott 2018 alle 12:46 Cemre Mengu <notifications@github.com>
ha scritto:
… Most tests are failing for me due to comparison errors like
test/generate.js .................................... 47/67
finish succesfully if package.json is there - npm
not ok \app.js matching
+++ found
--- wanted
require('fastify-autoload')
ts = function (fastify, opts, next) {
code!
llowing lines
all plugins defined in plugins
e should be support plugins that are reused
_dirname, 'plugins'),
n({}, opts)
s all plugins defined in services
s in one of these
__dirname, 'services'),
n({}, opts)
ext when done
+'use strict'
+
+const path = require('path')
+const AutoLoad = require('fastify-autoload')
+
+module.exports = function (fastify, opts, next) {
+ // Place here your custom code!
+
+ // Do not touch the following lines
+
+ // This loads all plugins defined in plugins
+ // those should be support plugins that are reused
+ // through your application
+ fastify.register(AutoLoad, {
+ dir: path.join(__dirname, 'plugins'),
+ options: Object.assign({}, opts)
+ })
+
+ // This loads all plugins defined in services
+ // define your routes in one of these
+ fastify.register(AutoLoad, {
+ dir: path.join(__dirname, 'services'),
+ options: Object.assign({}, opts)
+ })
+
+ // Make sure to call next when done
+ next()
+}
I am suspecting \r\n situation but I couldn't figure out the reason so
shamelessly posting here. 😄
Any ideas?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#112>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADL44OreYkqP5KTqD1BKZ45XZVqnFbkks5ukPGDgaJpZM4XaFhB>
.
|
Maybe enable appveyor on all repos? Would that help? |
I think we should try Travis Windows support here: https://blog.travis-ci.com/2018-10-11-windows-early-release. WDYT? |
Agreed, looks good! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Most tests are failing for me due to comparison errors like
The expected stuff is coming out garbled. I am suspecting
\r\n
situation but I couldn't figure out the reason so shamelessly posting here. 😄Any ideas?
The text was updated successfully, but these errors were encountered: