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(vite): e2e fixes for crystal #8

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

Conversation

mandarini
Copy link

@mandarini mandarini commented Jan 31, 2024

Fix vite e2e for project crystal.

I removed the following:

  • Tests that were using --buildLibsFromSource
  • Tests that were using --generatePackageJson
  • Tests that were testing generators (oops)
  • Tests that were testing if an executor is propagating options correctly (no executor used any more)

@@ -78,40 +77,4 @@ describe('@nx/vite/plugin', () => {
}
});
});

describe('react with vitest only', () => {
Copy link
Author

Choose a reason for hiding this comment

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

Not needed for e2e. This can be checked within unit tests, and is indeed being checked in unit tests.

@@ -68,84 +65,12 @@ describe('Vite Plugin', () => {
expect(fileExists(`dist/apps/${myApp}/package.json`)).toBeFalsy();
rmDist();
}, 200_000);

it('should build application with new package json generation', async () => {
runCLI(`build ${myApp} --generatePackageJson`);
Copy link
Author

Choose a reason for hiding this comment

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

generatePackageJson not supported by vite natively

});

100_000;
});

describe('incremental building', () => {
Copy link
Author

Choose a reason for hiding this comment

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

change this test to just test the building of dependencies

@@ -302,59 +198,6 @@ export default App;
expect(directoryExists(coverageDir)).toBeTruthy();
}, 100_000);

// TODO: This takes forever and times out everything - find out why
Copy link
Author

Choose a reason for hiding this comment

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

We are not using the @nx/vitest executor any more. so this test is not needed

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