-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert stage-1 tests to test-scenarios
- Loading branch information
Showing
20 changed files
with
521 additions
and
489 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = { name: 'in-repo-addon' }; |
4 changes: 4 additions & 0 deletions
4
tests/fixtures/basic-in-repo-addon/lib/in-repo-addon/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "in-repo-addon", | ||
"keywords": ["ember-addon"] | ||
} |
21 changes: 21 additions & 0 deletions
21
tests/fixtures/blacklisted-addon-build-options/ember-cli-build.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use strict'; | ||
|
||
const EmberApp = require('ember-cli/lib/broccoli/ember-app'); | ||
|
||
module.exports = function (defaults) { | ||
let app = new EmberApp(defaults, { | ||
// Add options here | ||
addons: { | ||
blacklist: ['blacklisted-in-repo-addon'], | ||
}, | ||
}); | ||
|
||
const { Webpack } = require('@embroider/webpack'); | ||
return require('@embroider/compat').compatBuild(app, Webpack, { | ||
skipBabel: [ | ||
{ | ||
package: 'qunit', | ||
}, | ||
], | ||
}); | ||
}; |
Empty file.
3 changes: 3 additions & 0 deletions
3
tests/fixtures/blacklisted-addon-build-options/lib/blacklisted-in-repo-addon/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
name: require('./package').name, | ||
}; |
4 changes: 4 additions & 0 deletions
4
tests/fixtures/blacklisted-addon-build-options/lib/blacklisted-in-repo-addon/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "blacklisted-in-repo-addon", | ||
"keywords": ["ember-addon"] | ||
} |
Empty file.
6 changes: 6 additions & 0 deletions
6
tests/fixtures/blacklisted-addon-build-options/lib/disabled-in-repo-addon/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
name: require('./package').name, | ||
isEnabled() { | ||
return false; | ||
}, | ||
}; |
4 changes: 4 additions & 0 deletions
4
tests/fixtures/blacklisted-addon-build-options/lib/disabled-in-repo-addon/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "disabled-in-repo-addon", | ||
"keywords": ["ember-addon"] | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/fixtures/hello-world-addon/addon/components/does-dynamic-import.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function () { | ||
return import('some-library'); | ||
} |
8 changes: 8 additions & 0 deletions
8
tests/fixtures/hello-world-addon/addon/components/has-inline-template.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Component from '@ember/component'; | ||
import { hbs } from 'ember-cli-htmlbars'; | ||
export default Component.extend({ | ||
// tagged template form: | ||
layout: hbs`<div class={{embroider-sample-transforms-target}}>Inline</div><span>{{macroDependencySatisfies 'ember-source' '>3'}}</span>`, | ||
// call expression form: | ||
extra: hbs('<div class={{embroider-sample-transforms-target}}>Extra</div>'), | ||
}); |
8 changes: 8 additions & 0 deletions
8
tests/fixtures/hello-world-addon/addon/components/hello-world.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Component from '@ember/component'; | ||
import layout from '../templates/components/hello-world'; | ||
import { getOwnConfig } from '@embroider/macros'; | ||
export default Component.extend({ | ||
message: 'embroider-sample-transforms-target', | ||
config: getOwnConfig(), | ||
layout, | ||
}); |
2 changes: 2 additions & 0 deletions
2
tests/fixtures/hello-world-addon/addon/templates/components/hello-world.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<div class={{embroider-sample-transforms-target}}>hello world</div> | ||
<span>{{macroDependencySatisfies "ember-source" ">3"}}</span> |
1 change: 1 addition & 0 deletions
1
tests/fixtures/hello-world-addon/addon/templates/components/module-name.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class={{embroider-sample-transforms-module}}>hello world</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from 'my-addon/components/hello-world'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
name: require('./package').name, | ||
options: { | ||
babel: { | ||
plugins: [require.resolve('ember-auto-import/babel-plugin')], | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.