Skip to content

In MU apps, exclude test files from the app JS file - #8314

Merged
rwjblue merged 1 commit into
ember-cli:masterfrom
ppcano:fix-mu-process-tests
Dec 23, 2018
Merged

rwjblue merged 1 commit into
ember-cli:masterfrom
ppcano:fix-mu-process-tests

Conversation

@ppcano

@ppcano ppcano commented Dec 21, 2018 •

Copy link
Copy Markdown
Contributor

The PR fixes that test files in the src folder are added to the testJsFile instead of the appJsFile.

The current implementation recognize tests with the pattern **/*-test.js, but this will fail if a non-test class is named like xxx-test.js.

services/app-test.js         // the service
services/app-test-test.js // test of the `app-test` service

This case will fail because both files will be added into the testJsFile.

It should fix some of the issues reported at emberjs/ember.js#17224

Comment thread lib/broccoli/default-packager.js Resolved
@rwjblue
rwjblue merged commit 413b260 into ember-cli:master Dec 23, 2018
@NullVoxPopuli

Copy link
Copy Markdown
Contributor

I still have test files in my bundle :-\

@ppcano

ppcano commented Jan 3, 2019

Copy link
Copy Markdown
Contributor Author

@NullVoxPopuli which test files are included in the bundle app, do you have a repo I can reproduce it?

@NullVoxPopuli

NullVoxPopuli commented Jan 3, 2019 •

Copy link
Copy Markdown
Contributor

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.

3 participants