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

Support using ES modules to define scenarios #11

Closed
wants to merge 2 commits into from

Conversation

mansona
Copy link
Member

@mansona mansona commented May 29, 2023

While working on #10 I was testing out setting up scenario-tester in a non-built package (ember-cli-fastboot) and I wasn't able to get scenario-tester list to work because the code expected commonJS.

I couldn't see any way around this other than to make sure that typescript outputs modules (so we can do dynamic imports properly) but then this means you can only use scenario-tester in an ESM environment. I've added tests to show specifics of ESM and CommonJS environments.

I'm wondering if we should just move everything to ESM or if we should do something like https://thesametech.com/how-to-build-typescript-project/ to allow us to build an ESM and CommonJS compatible output. Thoughts?

Edit: here is a PR to ember-cli-fastboot that implements scenario-tester using this PR 👍 ember-fastboot/ember-cli-fastboot#919

@mansona
Copy link
Member Author

mansona commented Sep 1, 2023

Closing this in favour of #18

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.

1 participant