diff --git a/package.json b/package.json index 2bdecb7..2f99828 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "devDependencies": { "broccoli-asset-rev": "^2.4.5", "ember-ajax": "^3.0.0", - "ember-cli": "~2.15.1", + "ember-cli": "~2.16.2", "ember-cli-dependency-checker": "^2.0.0", "ember-cli-eslint": "^4.0.0", "ember-cli-htmlbars": "^2.0.1", @@ -35,12 +35,12 @@ "ember-cli-qunit": "^4.0.0", "ember-cli-shims": "^1.1.0", "ember-cli-sri": "^2.1.0", - "ember-cli-uglify": "^1.2.0", + "ember-cli-uglify": "^2.0.0", "ember-disable-prototype-extensions": "^1.1.2", "ember-export-application-global": "^2.0.0", "ember-load-initializers": "^1.0.0", "ember-resolver": "^4.0.0", - "ember-source": "~2.15.0", + "ember-source": "~2.16.0", "loader.js": "^4.2.3" }, "engines": { diff --git a/testem.js b/testem.js index a40a530..e79c22e 100644 --- a/testem.js +++ b/testem.js @@ -9,11 +9,14 @@ module.exports = { 'Chrome' ], browser_args: { - Chrome: [ - '--disable-gpu', - '--headless', - '--remote-debugging-port=9222', - '--window-size=1440,900' - ] + Chrome: { + mode: 'ci', + args: [ + '--disable-gpu', + '--headless', + '--remote-debugging-port=9222', + '--window-size=1440,900' + ] + }, } }; diff --git a/tests/dummy/app/app.js b/tests/dummy/app/app.js index c15f935..b3b2bd6 100644 --- a/tests/dummy/app/app.js +++ b/tests/dummy/app/app.js @@ -1,9 +1,9 @@ -import Ember from 'ember'; +import Application from '@ember/application'; import Resolver from './resolver'; import loadInitializers from 'ember-load-initializers'; import config from './config/environment'; -const App = Ember.Application.extend({ +const App = Application.extend({ modulePrefix: config.modulePrefix, podModulePrefix: config.podModulePrefix, Resolver diff --git a/tests/dummy/app/router.js b/tests/dummy/app/router.js index cdc2578..d0bb009 100644 --- a/tests/dummy/app/router.js +++ b/tests/dummy/app/router.js @@ -1,7 +1,7 @@ -import Ember from 'ember'; +import EmberRouter from '@ember/routing/router'; import config from './config/environment'; -const Router = Ember.Router.extend({ +const Router = EmberRouter.extend({ location: config.locationType, rootURL: config.rootURL }); diff --git a/tests/dummy/config/environment.js b/tests/dummy/config/environment.js index 251bdcb..1d54915 100644 --- a/tests/dummy/config/environment.js +++ b/tests/dummy/config/environment.js @@ -44,7 +44,7 @@ module.exports = function(environment) { } if (environment === 'production') { - + // here you can enable a production-specific feature } return ENV; diff --git a/tests/helpers/destroy-app.js b/tests/helpers/destroy-app.js index c3d4d1a..e7f983b 100644 --- a/tests/helpers/destroy-app.js +++ b/tests/helpers/destroy-app.js @@ -1,5 +1,5 @@ -import Ember from 'ember'; +import { run } from '@ember/runloop'; export default function destroyApp(application) { - Ember.run(application, 'destroy'); + run(application, 'destroy'); } diff --git a/tests/helpers/module-for-acceptance.js b/tests/helpers/module-for-acceptance.js index 5a1a583..90a93ba 100644 --- a/tests/helpers/module-for-acceptance.js +++ b/tests/helpers/module-for-acceptance.js @@ -1,10 +1,8 @@ import { module } from 'qunit'; -import Ember from 'ember'; +import { resolve } from 'rsvp'; import startApp from '../helpers/start-app'; import destroyApp from '../helpers/destroy-app'; -const { RSVP: { resolve } } = Ember; - export default function(name, options = {}) { module(name, { beforeEach() { diff --git a/tests/helpers/start-app.js b/tests/helpers/start-app.js index 9a605eb..681aa01 100644 --- a/tests/helpers/start-app.js +++ b/tests/helpers/start-app.js @@ -1,12 +1,13 @@ -import Ember from 'ember'; import Application from '../../app'; import config from '../../config/environment'; +import { merge } from '@ember/polyfills'; +import { run } from '@ember/runloop'; export default function startApp(attrs) { - let attributes = Ember.merge({}, config.APP); - attributes = Ember.merge(attributes, attrs); // use defaults, but you can override; + let attributes = merge({}, config.APP); + attributes = merge(attributes, attrs); // use defaults, but you can override; - return Ember.run(() => { + return run(() => { let application = Application.create(attributes); application.setupForTesting(); application.injectTestHelpers(); diff --git a/tests/unit/index-test.js b/tests/unit/index-test.js index a65933a..d0f34b3 100644 --- a/tests/unit/index-test.js +++ b/tests/unit/index-test.js @@ -1,7 +1,10 @@ import { Promise } from 'rsvp'; import { test, module } from 'qunit'; import { DEBUG } from '@glimmer/env'; -import buildErrorHandler, { squelchErrorHandlerFor, unsquelchAllErrorHandlers } from 'ember-test-friendly-error-handler'; +import buildErrorHandler, { + squelchErrorHandlerFor, + unsquelchAllErrorHandlers +} from 'ember-test-friendly-error-handler'; module('ember-test-friendly-error-handler', function() { module('in debug', function(hooks) {