Skip to content

Commit

Permalink
fix(build-env): fix test imports
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Sep 14, 2024
1 parent 1fcfb37 commit b47aefc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from './verdaccio-npm-env';
import { execSync } from 'node:child_process';
import { logger } from '@nx/devkit';
import { formatInfo } from '../../internal/utils/logging';
import { formatInfo } from '../../internal/logging';

vi.mock('child_process', async () => {
const actual = await vi.importActual<typeof import('child_process')>(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { describe, it, expect } from 'vitest';
import { parseRegistryData, startVerdaccioServer } from './verdaccio-registry';
import { executeProcess } from '../../internal/utils/execute-process';
import { ChildProcess } from 'node:child_process'; // Adjust import path
import { executeProcess } from '../../internal/execute-process';
import { ChildProcess } from 'node:child_process';
import { logger } from '@nx/devkit';

vi.mock('../../internal/utils/execute-process');
vi.mock('../../internal/execute-process');

vi.mock('@nx/devkit', async () => {
const actual = await vi.importActual('@nx/devkit');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { beforeEach, describe, expect } from 'vitest';
import runNpmInstallExecutor from './executor';
import { MEMFS_VOLUME } from '@org/test-utils';
import * as execProcessModule from '../../internal/utils/execute-process';
import * as execProcessModule from '../../internal/execute-process';
import { logger, readJsonFile } from '@nx/devkit';
import { join } from 'node:path';
import { DEFAULT_ENVIRONMENTS_OUTPUT_DIR } from '../../internal/constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { beforeEach, describe, expect } from 'vitest';
import runNpmInstallExecutor from './executor';
import { MEMFS_VOLUME } from '@org/test-utils';
import * as execProcessModule from '../../internal/utils/execute-process';
import * as execProcessModule from '../../internal/execute-process';
import { logger, readJsonFile } from '@nx/devkit';
import { join } from 'node:path';
import { DEFAULT_ENVIRONMENTS_OUTPUT_DIR } from '../../internal/constants';
Expand Down

0 comments on commit b47aefc

Please sign in to comment.