Skip to content

Instantly share code, notes, and snippets.

@runspired
Created March 11, 2015 17:15
Show Gist options
  • Save runspired/67a55c56ee27b87467c2 to your computer and use it in GitHub Desktop.
Save runspired/67a55c56ee27b87467c2 to your computer and use it in GitHub Desktop.
file layout of ember addon trying to import from /app into /test/test-helper.js

MobileTouch overrides event-dispatcher:main by calling reopen on Ember.EventDispatcher (and several other classes) to apply new events and remove unneeded events. The EventDispatcher overrides need access to the user's config file, and thus it is exposed via /app.

I'm trying to figure out how to get the initializer included when setting up the app for testing the addon itself. The above does not resolve.

import config from "../config/environment";
import EventManager from "ember-mobiletouch/overrides/event-manager";
import CustomRecognizers from "../recognizers.js";
export default EventManager.reopen({
_mobileTouchCustomizations : config,
_customRecognizers : CustomRecognizers
});
import mobileTouchOverrides from '../app/overrides/ember-mobiletouch';
import resolver from './helpers/resolver';
import {
setResolver
} from 'ember-qunit';
setResolver(resolver);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment