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

Fix test app invocation #159

Merged
merged 2 commits into from
May 2, 2023
Merged

Fix test app invocation #159

merged 2 commits into from
May 2, 2023

Conversation

vitch
Copy link
Contributor

@vitch vitch commented Apr 26, 2023

I was about to look into #152 and I noticed that running pnpm start at the root of the monorepo didn't build the test app,

This PR fixes that and updates some docs.

@changeset-bot
Copy link

changeset-bot bot commented Apr 26, 2023

⚠️ No Changeset found

Latest commit: 45dc4d7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vitch vitch requested a review from a team April 26, 2023 10:42
@github-actions
Copy link
Contributor

github-actions bot commented Apr 26, 2023


When you make changes to the files in this repo you must create a [changeset](https://github.com/changesets/changesets):

* `pnpm changeset`
Copy link
Contributor

Choose a reason for hiding this comment

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

Ymmv/imo, ofc, but this is only true if a change is consumer facing, and warrants a changelog entry / consumers of the library need to know what happened

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated the docs and removed the changeset :)

@@ -27,6 +27,20 @@
* `cd docs-app`
* `pnpm start` – starts the test app and tests are available at `/tests`

## Running everything together

* `pnpm start` - starts the addon, the tests, the docs app and the docs API
Copy link
Contributor

Choose a reason for hiding this comment

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

starts_which

This only starts the docs-app for me?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On this branch? The changes in package.json are what were necessary to make it also build the tests.

I think the docs API is running for you but it's not an Ember app so it doesn't log the same stuff...

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahhh gotcha.

Okay so after doing the following, test-app and docs-app work for me locally:

cd ember-toucan-core
pnpm build
pnpm link .
cd ../docs-app
pnpm link ember-headless-table # temporary for local development, not to be checked in
cd ../test-app
pnpm link ember-headless-table # temporary for local development, not to be checked in
cd ../ #switch to route
pnpm start

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah - the change in this PR make it so that things build but they don't make it so that changes in ember-headless-table are consumed in the docs or test app...

I think #145 is the proper solution to that - all the linking is super hacky.

Sidenote - instead of linking I think you can delete the dependenciesMeta part of package.json and run pnpm install --force once. Again it shouldn't be committed (because the dev dependencies of ember-headless-table can leak into the consuming apps) but it might be a more ergonomic hack for now. FWIW this worked great on the docs app when I tried but the tests app didn't like it and I didn't dig in further...

vitch added 2 commits May 2, 2023 14:46
Previously it was trying to launch the `ember-headless-table` package
for the tests but in fact it needs to launch the `test-app`.
To cover a) running everything and b) changelogs
@vitch vitch force-pushed the fix-test-app-invocation branch from e2be0b4 to 45dc4d7 Compare May 2, 2023 13:46
@vitch vitch merged commit e99b667 into main May 2, 2023
@vitch vitch deleted the fix-test-app-invocation branch May 2, 2023 14:05
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.

5 participants