Skip to content

Commit b394372

Browse files
committed
add more test cases
1 parent b85213f commit b394372

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
'use strict';
2+
3+
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
4+
5+
6+
module.exports = function (defaults) {
7+
let app = new EmberApp(defaults, {
8+
babel: {
9+
plugins: [
10+
[
11+
require.resolve('babel-plugin-ember-test-metadata'),
12+
{
13+
enabled: !!process.env.BABEL_TEST_METADATA,
14+
packageName: defaults.project.pkg.name,
15+
},
16+
],
17+
],
18+
},
19+
});
20+
21+
// additional configuration
22+
23+
return app.toTree();
24+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
'use strict';
2+
3+
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
4+
5+
6+
module.exports = function (defaults) {
7+
let app = new EmberApp(defaults, {
8+
babel: {
9+
plugins: [[
10+
require.resolve('babel-plugin-ember-test-metadata'),
11+
{
12+
enabled: !!process.env.BABEL_TEST_METADATA,
13+
packageName: defaults.project.pkg.name,
14+
},
15+
], ...require('ember-cli-code-coverage').buildBabelPlugin({
16+
embroider: !!process.env.EMBROIDER,
17+
})],
18+
},
19+
});
20+
21+
// additional configuration
22+
23+
return app.toTree();
24+
};

0 commit comments

Comments
 (0)