Skip to content
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

Closed
cemremengu opened this issue Oct 12, 2018 · 4 comments
Closed

Tests are failing on windows #112

cemremengu opened this issue Oct 12, 2018 · 4 comments

Comments

@cemremengu
Copy link
Contributor

cemremengu commented Oct 12, 2018

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()
    +}

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?

@mcollina
Copy link
Member

mcollina commented Oct 12, 2018 via email

@cemremengu
Copy link
Contributor Author

cemremengu commented Oct 12, 2018

Maybe enable appveyor on all repos? Would that help?

@mcollina
Copy link
Member

I think we should try Travis Windows support here: https://blog.travis-ci.com/2018-10-11-windows-early-release. WDYT?

@cemremengu
Copy link
Contributor Author

Agreed, looks good!

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

No branches or pull requests

2 participants