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

[wct] {clientOptions: environmentScripts } can't be overriden anymore #525

Closed
pdesjardins90 opened this issue Jun 15, 2018 · 1 comment · May be fixed by gcloud-lerralice/tools#28, Exnadella/tools#70, Exnadella/tools#84 or Exnadella/tools#120

Comments

@pdesjardins90
Copy link

I have this config:

{
  "clientOptions": {
    "environmentScripts": [
      "stacky/lib/parsing.js",
      "stacky/lib/formatting.js",
      "stacky/lib/normalization.js",
      "mocha/mocha.js",
      "chai/chai.js",
      "@polymer/sinonjs/sinon.js",
      "sinon-chai/lib/sinon-chai.js",
      "dirty-chai/lib/dirty-chai.js"
    ]
  },
...
}

but the WCT now outputs this configuration instead:

clientOptions: 
   { root: '/components/',
     environmentScripts: 
      [ 'stacky/lib/parsing.js',
        'stacky/lib/formatting.js',
        'stacky/lib/normalization.js',
        'mocha/mocha.js',
        'chai/chai.js',
        '@polymer/sinonjs/sinon.js',
        'sinon-chai/lib/sinon-chai.js',
        'dirty-chai/lib/dirty-chai.js',
        'stacky/browser.js',
        'wct-browser-legacy/node_modules/async/lib/async.js',
        'wct-browser-legacy/node_modules/lodash/index.js',
        'mocha/mocha.js',
        'chai/chai.js',
        '@polymer/sinonjs/sinon.js',
        'sinon-chai/lib/sinon-chai.js',
        'accessibility-developer-tools/dist/js/axs_testing.js',
        'wct-browser-legacy/node_modules/@polymer/test-fixture/test-fixture.js' ],
     verbose: true }

It doesn't override default environment scripts anymore, it just appends them right after what I provide.

@pdesjardins90
Copy link
Author

Due to absolutely no feedback on your part in 4 months, and the general "abandonware" feel I get from this repo, I'm gonna close this and begin searching for a better testing tool for web components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment