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(testing): allow loading esm config #7

Open
wants to merge 1 commit into
base: crystal-default
Choose a base branch
from

Conversation

Coly010
Copy link

@Coly010 Coly010 commented Jan 31, 2024

This still fails if the file ext is .js and it contains ESM.

@@ -157,7 +158,8 @@ describe('@nx/cypress/plugin', () => {
`);
});

it('should use ciDevServerTarget to create additional configurations', () => {
// TODO(Colum): Enable this
xit('should use ciDevServerTarget to create additional configurations', async () => {
Copy link
Author

Choose a reason for hiding this comment

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

This test fails because of the following line in setupWorkspaceContext which doesn't play ball with tempFs
https://github.com/nrwl/nx/blob/2374d8eaba89f1f82e789cc14b62230c2393862d/packages/nx/src/utils/workspace-context.ts#L9

It tries to require it from the tempFS's temporary directory, and it doesn't exist.

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.

None yet

1 participant