diff --git a/e2e-tests/tests/angular-17.test.ts b/e2e-tests/tests/angular-17.test.ts index 7d861104..c464b71b 100644 --- a/e2e-tests/tests/angular-17.test.ts +++ b/e2e-tests/tests/angular-17.test.ts @@ -11,6 +11,7 @@ import { getWizardCommand, modifyFile, } from '../utils'; +import * as fs from 'fs'; import * as path from 'path'; import { TEST_ARGS } from '../utils'; import { test, expect, describe, beforeAll, afterAll, it } from 'vitest'; @@ -224,12 +225,14 @@ function checkAngularProject( ]); }); - test('angular.json is updated correctly', async () => { + test('angular.json is updated correctly', () => { const angularJsonFile = path.resolve(projectDir, 'angular.json'); checkFileExists(angularJsonFile); - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const angularJson = (await import(angularJsonFile)) as Record; + const angularJson = JSON.parse( + fs.readFileSync(angularJsonFile, 'utf-8'), + // eslint-disable-next-line @typescript-eslint/no-explicit-any + ) as Record; // eslint-disable-next-line @typescript-eslint/no-explicit-any for (const [, project] of Object.entries( diff --git a/e2e-tests/tests/angular-19.test.ts b/e2e-tests/tests/angular-19.test.ts index bfdafe6f..64ad9257 100644 --- a/e2e-tests/tests/angular-19.test.ts +++ b/e2e-tests/tests/angular-19.test.ts @@ -11,6 +11,7 @@ import { getWizardCommand, modifyFile, } from '../utils'; +import * as fs from 'fs'; import * as path from 'path'; import { TEST_ARGS } from '../utils'; import { test, expect, describe, beforeAll, afterAll, it } from 'vitest'; @@ -222,12 +223,14 @@ function checkAngularProject( ]); }); - test('angular.json is updated correctly', async () => { + test('angular.json is updated correctly', () => { const angularJsonFile = path.resolve(projectDir, 'angular.json'); checkFileExists(angularJsonFile); - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const angularJson = (await import(angularJsonFile)) as Record; + const angularJson = JSON.parse( + fs.readFileSync(angularJsonFile, 'utf-8'), + // eslint-disable-next-line @typescript-eslint/no-explicit-any + ) as Record; // eslint-disable-next-line @typescript-eslint/no-explicit-any for (const [, project] of Object.entries( diff --git a/yarn.lock b/yarn.lock index cb39bf7f..2d226449 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3541,9 +3541,9 @@ vite-node@3.0.9: vite "^5.0.0 || ^6.0.0" "vite@^5.0.0 || ^6.0.0", vite@^6.2.3: - version "6.4.1" - resolved "https://registry.npmjs.org/vite/-/vite-6.4.1.tgz" - integrity sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g== + version "6.4.2" + resolved "https://registry.yarnpkg.com/vite/-/vite-6.4.2.tgz#a4e548ca3a90ca9f3724582cab35e1ba15efc6f2" + integrity sha512-2N/55r4JDJ4gdrCvGgINMy+HH3iRpNIz8K6SFwVsA+JbQScLiC+clmAxBgwiSPgcG9U15QmvqCGWzMbqda5zGQ== dependencies: esbuild "^0.25.0" fdir "^6.4.4"