Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PLATFORM_DISABLED_KEY } from '@void/platform';
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test';
import app from '../../src/index.ts';
import { setupEnv, teardownEnv, type TestEnv } from './helpers.ts';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { eq } from 'drizzle-orm';
import { describe, it, expect, beforeAll, beforeEach, afterAll } from 'vitest';
import { describe, it, expect, beforeAll, beforeEach, afterAll } from 'vite-plus/test';
import type { Db } from '../../src/db.ts';
import app from '../../src/index.ts';
import { MIN_CLI_VERSION } from '../../src/middleware/cli-version.ts';
Expand Down
2 changes: 1 addition & 1 deletion platform/packages/api/test/unit/cli-version.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Hono } from 'hono';
import { describe, expect, it } from 'vitest';
import { describe, expect, it } from 'vite-plus/test';
import {
checkCliVersionOrRespond,
compareVersions,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { createApplicationRoutes, parsePlatformDeploymentManifest } from '@void/platform';
import { describe, expect, it } from 'vitest';
import { describe, expect, it } from 'vite-plus/test';

const manifestPath = resolve(import.meta.dirname, '../../../../deployments/void-cloud.json');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
createPlatformResourceNames,
parsePlatformDeploymentManifest,
} from '@void/platform';
import { describe, expect, it } from 'vitest';
import { describe, expect, it } from 'vite-plus/test';

describe('platform deployment manifest', () => {
it('creates isolated resource names', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
recordInstallationStep,
transitionInstallation,
} from '@void/platform';
import { describe, expect, it } from 'vitest';
import { describe, expect, it } from 'vite-plus/test';

const now = '2026-09-14T00:00:00.000Z';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from 'vitest';
import { describe, expect, it } from 'vite-plus/test';
import { isPublicDashboardPath } from '../../middleware/01.auth.ts';

describe('dashboard auth middleware', () => {
Expand Down
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ export default defineConfig({
node: true,
},
jsPlugins: [
{
name: 'vite-plus',
specifier: 'vite-plus/oxlint-plugin',
},
{
name: 'react-hooks-js',
specifier: 'eslint-plugin-react-hooks',
Expand Down Expand Up @@ -406,6 +410,8 @@ export default defineConfig({
'unicorn/prefer-set-size': 'error',
'use-isnan': 'error',
'valid-typeof': 'error',
// Import test APIs from `vite-plus/test`, not `vitest`.
'vite-plus/prefer-vite-plus-imports': 'error',
},
options: {
typeAware: false,
Expand Down
Loading