chore(repo): set specific packages to install in testing tools e2e tests (#20759)

This commit is contained in:
Leosvel Pérez Espinosa 2023-12-15 16:43:17 +01:00 committed by GitHub
parent 6199c20113
commit 3a15b434c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,4 @@
import { import {
checkFilesDoNotExist,
checkFilesExist, checkFilesExist,
cleanupProject, cleanupProject,
createFile, createFile,
@ -19,7 +18,7 @@ describe('Cypress E2E Test runner', () => {
const myapp = uniq('myapp'); const myapp = uniq('myapp');
beforeAll(() => { beforeAll(() => {
newProject(); newProject({ packages: ['@nx/angular', '@nx/next', '@nx/react'] });
ensureCypressInstallation(); ensureCypressInstallation();
}); });

View File

@ -6,7 +6,7 @@ describe('Jest root projects', () => {
describe('angular', () => { describe('angular', () => {
beforeAll(() => { beforeAll(() => {
newProject(); newProject({ packages: ['@nx/angular', '@nx/react'] });
}); });
it('should test root level app projects', async () => { it('should test root level app projects', async () => {

View File

@ -11,7 +11,7 @@ import {
describe('Jest', () => { describe('Jest', () => {
beforeAll(() => { beforeAll(() => {
newProject({ name: uniq('proj-jest') }); newProject({ name: uniq('proj-jest'), packages: ['@nx/js', '@nx/node'] });
}); });
afterAll(() => cleanupProject()); afterAll(() => cleanupProject());

View File

@ -16,7 +16,10 @@ describe('Playwright E2E Test runner', () => {
}); });
beforeAll(() => { beforeAll(() => {
newProject({ name: uniq('playwright') }); newProject({
name: uniq('playwright'),
packages: ['@nx/playwright', '@nx/web'],
});
}); });
afterAll(() => cleanupProject()); afterAll(() => cleanupProject());