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

How to configure QUnit? #281

Closed
kybishop opened this issue Aug 31, 2017 · 5 comments
Closed

How to configure QUnit? #281

kybishop opened this issue Aug 31, 2017 · 5 comments

Comments

@kybishop
Copy link

kybishop commented Aug 31, 2017

Particularly for things like maxDepth.

Happy to add a PR to the README once I figure out how to do this.

@trentmwillis
Copy link
Member

There are some examples of how to configure QUnit in the QUnit API documentation: http://api.qunitjs.com/config/QUnit.config#examples. They should work with ember-qunit as well.

@kybishop
Copy link
Author

What has me confused is how to get access to QUnit.config. I don't see a place where it is exported, or where QUnit itself is exported. Am I missing something?

@rwjblue
Copy link
Member

rwjblue commented Aug 31, 2017

import QUnit from 'qunit';

@kybishop
Copy link
Author

Derp. Didn't realize I can just import from qunit itself. Thanks!

@patrickberkeley
Copy link

To setup QUnit.config.seed I've tried the following with no luck:

// tests/test-helper.js

import { start } from 'ember-cli-qunit';
import QUnit from 'qunit';

QUnit.config.seed = '';
// or QUnit.config.seed = 'someString';
// or QUnit.config.seed = true;

start();

I also tried adding --seed option when running in the command line, but that doesn't seem to do anything.

Any ideas?

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

4 participants