MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / generateTestFile

Method generateTestFile

lib/models/project.js:625–635  ·  view source on GitHub ↗

Generate test file contents. This method is supposed to be overwritten by test framework addons like `ember-qunit`. @public @method generateTestFile @param {String} moduleName Name of the test module (e.g. `JSHint`) @param {Object[]} tests Array of tests with `name`, `passe

()

Source from the content-addressed store, hash-verified

623 @return {String} The test file content
624 */
625 generateTestFile() {
626 let message = 'Please install an Ember.js test framework addon or update your dependencies.';
627
628 if (this.ui) {
629 this.ui.writeDeprecateLine(message);
630 } else {
631 console.warn(message);
632 }
633
634 return '';
635 }
636
637 /**
638 Returns a new project based on the first `package.json` that is found

Callers 1

project-test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected