Skip to content

Commit

Permalink
Run embroider tests without FastBoot
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Jan 7, 2020
1 parent edf3e98 commit 0817211
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config/ember-try.js
Expand Up @@ -114,10 +114,10 @@ module.exports = function() {
'@embroider/core': '*',
'@embroider/webpack': '*',
'@embroider/compat': '*',
// remove fastboot dependencies until https://github.com/embroider-build/embroider/issues/160 is resolved.
'ember-cli-fastboot': null,
'ember-cli-fastboot-testing': null
}
},
env: {
FASTBOOT_DISABLED: true
}
}
]
Expand Down
17 changes: 16 additions & 1 deletion ember-cli-build.js
Expand Up @@ -3,13 +3,28 @@
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');

module.exports = function(defaults) {
let trees = {};

// Exclude FastBoot tests if FASTBOOT_DISABLED is set,
// to enable Embroider tests until https://github.com/embroider-build/embroider/issues/160 is resolved.
if (process.env.FASTBOOT_DISABLED) {
const Funnel = require('broccoli-funnel');
trees.tests = new Funnel('tests', {
exclude: ['fastboot/**'],
});
}

let app = new EmberAddon(defaults, {
'ember-cli-babel': {
includePolyfill: !!process.env.BABELPOLYFILL
},
autoImport: {
forbidEval: true
}
},
trees,
addons: {
blacklist: process.env.FASTBOOT_DISABLED ? ['ember-cli-fastboot-testing'] : []
},
});

/*
Expand Down

0 comments on commit 0817211

Please sign in to comment.