import { runCLI, runE2ETests } from '@nx/e2e-utils'; import { setupCypressComponentTests, cleanupCypressComponentTests, CypressComponentTestsSetup, } from './cypress-component-tests-setup'; describe('Angular Cypress Component Tests - App', () => { let setup: CypressComponentTestsSetup; beforeAll(async () => { setup = setupCypressComponentTests(); }); afterAll(() => cleanupCypressComponentTests()); // TODO(jack): re-enable when lodash@4.18.0 assignWith bug is resolved it.skip('should test app', () => { const { appName } = setup; runCLI( `generate @nx/angular:cypress-component-configuration --project=${appName} --generate-tests --no-interactive` ); if (runE2ETests('cypress')) { expect(runCLI(`component-test ${appName}`)).toContain( 'All specs passed!' ); } }, 300_000); });