Skip to content

allow colocated test files#53

Merged
rwjblue merged 1 commit intoember-cli:masterfrom
GavinJoyce:gj/allow-colocated-test-files
Apr 17, 2018
Merged

allow colocated test files#53
rwjblue merged 1 commit intoember-cli:masterfrom
GavinJoyce:gj/allow-colocated-test-files

Conversation

@GavinJoyce
Copy link
Contributor

With module unification, test files can be colocated with initializers. This PR avoids registering initializers and application-initializers which end in -test.

This will unblock work on MU blueprints such as emberjs/ember.js#16489 (comment)

"ember-data": "^2.17.0",
"ember-disable-prototype-extensions": "^1.1.2",
"ember-export-application-global": "^2.0.0",
"ember-load-initializers": "^1.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing this so that we're testing the local project, not the published package

instanceInitializers.push(moduleName);
if (!_endsWith(moduleName, '-test')) {
instanceInitializers.push(moduleName);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without these changes, the app fails to boot with:

screen shot 2018-04-16 at 14 26 54

@GavinJoyce GavinJoyce force-pushed the gj/allow-colocated-test-files branch from 2796558 to 12599b5 Compare April 16, 2018 13:36
@GavinJoyce GavinJoyce force-pushed the gj/allow-colocated-test-files branch from 12599b5 to 6b6e40c Compare April 16, 2018 17:58
@GavinJoyce
Copy link
Contributor Author

/cc @rwjblue (perhaps you could publish too if you're 👍?)

@ghost
Copy link

ghost commented Apr 16, 2018

Thanks Gavin; I think this change fixes #47.

@rwjblue rwjblue merged commit f9c3eac into ember-cli:master Apr 17, 2018
@GavinJoyce GavinJoyce deleted the gj/allow-colocated-test-files branch April 17, 2018 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants