Skip to content

Commit

Permalink
test(utils): refactor setup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Mar 7, 2024
1 parent dcea0c9 commit 35adb48
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { beforeEach, describe, expect, vi } from 'vitest';
import { beforeEach, describe, expect } from 'vitest';
import { CategoryConfig, CoreConfig } from '@code-pushup/models';
import { ui } from '@code-pushup/utils';
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/lib/implementation/persist.unit.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { vol } from 'memfs';
import { readFile } from 'node:fs/promises';
import { join } from 'node:path';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { beforeEach, describe, expect, it } from 'vitest';
import { Report } from '@code-pushup/models';
import {
MEMFS_VOLUME,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { beforeAll, beforeEach, describe } from 'vitest';
import { beforeEach, describe } from 'vitest';
import { reportMock } from '@code-pushup/test-utils';
import { ui } from '../logging';
import { logStdoutSummary } from './log-stdout-summary';
Expand Down
1 change: 1 addition & 0 deletions packages/utils/vite.config.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default defineConfig({
include: ['src/**/*.integration.test.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
globalSetup: ['../../global-setup.ts'],
setupFiles: [
'./mocks/setup/cliui.mock.ts',
'../../testing/test-setup/src/lib/console.mock.ts',
'../../testing/test-setup/src/lib/reset.mocks.ts',
],
Expand Down

0 comments on commit 35adb48

Please sign in to comment.