Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move tests to new test-app #1468

Merged
merged 18 commits into from
Jul 29, 2024
Merged

Move tests to new test-app #1468

merged 18 commits into from
Jul 29, 2024

Conversation

NullVoxPopuli
Copy link
Collaborator

@NullVoxPopuli NullVoxPopuli commented Jul 24, 2024

V2 addons don't have an integrated test setup atm, so a separate test app is how we test v2 addons.

Test-helpers isn't a v2 addon yet, but this'll greatly reduce the diff of that upcoming change.

This is a non-breaking change as it mostly focuses on using a new app for the tests instead of using the "dummy app"


For V2 Conversion

  • extract test-app <- this PR
  • fix type-imports
  • find old code and remove it (optional, unless it's tied to the build)
  • native library conversion

depending on how these PRs go will determine if we need to do a major or not.

@NullVoxPopuli NullVoxPopuli changed the base branch from master to fix-type-imports July 24, 2024 17:35
Base automatically changed from fix-type-imports to master July 24, 2024 17:59
@@ -35,19 +38,6 @@ QUnit.done(function () {
}
});

class TestLoader extends AbstractTestLoader {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

handled by ember-qunit these days

@@ -109,8 +99,8 @@ QUnit.assert.deprecationsInclude = function (expected) {
});
};

QUnit.start();

if (typeof Testem !== 'undefined') {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

also handled by ember-qunit

…urce, and declares a peerDependency, we must use depMeta*injected
@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review July 24, 2024 22:48
"node": "14.* || 16.* || >= 18"
},
"ember": {
"edition": "octane"
Copy link

Choose a reason for hiding this comment

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

is edition still a thing here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yup

"webpack": "^5.78.0"
},
"engines": {
"node": "14.* || 16.* || >= 18"
Copy link

Choose a reason for hiding this comment

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

wondering if we could drop 14 and 16..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We could, but would me separate. During v2 conversion, node would cease to matter anyway

Copy link
Member

@kategengler kategengler left a comment

Choose a reason for hiding this comment

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

The Readme needs to be updated to reflect this change (right now says ember test) as does CONTRIBUTING.md (or removed, there isn't much there that isn't in the Readme)

@NullVoxPopuli NullVoxPopuli merged commit ff604ae into master Jul 29, 2024
20 checks passed
@NullVoxPopuli NullVoxPopuli deleted the extract-test-app branch July 29, 2024 18:09
@github-actions github-actions bot mentioned this pull request Jul 29, 2024
@NullVoxPopuli NullVoxPopuli mentioned this pull request Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants