Skip to content
Open
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
2 changes: 1 addition & 1 deletion apps/web/src/app/api/memory/cron/__tests__/route.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, vi, beforeEach } from 'vitest';
import { assert } from '@/lib/memory/__tests__/riteway';
import { assert } from '@/test/riteway';

/**
* Memory Cron Route Tests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect, vi, beforeEach } from 'vitest';
import { assert } from './riteway';
import { assert } from '@/test/riteway';

// Mock database and dependencies
vi.mock('@pagespace/db', () => ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect, vi, beforeEach } from 'vitest';
import { assert } from './riteway';
import { assert } from '@/test/riteway';

// Mock database and dependencies
vi.mock('@pagespace/db', () => ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect, vi, beforeEach } from 'vitest';
import { assert } from './riteway';
import { assert } from '@/test/riteway';

// Mock database and dependencies
vi.mock('@pagespace/db', () => ({
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/lib/ai/tools/__tests__/search-tools.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect, vi, beforeEach } from 'vitest';
import { assert } from './riteway';
import { assert } from '@/test/riteway';

// Mock only the boundary we actually test
vi.mock('@pagespace/lib/server', () => ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, it, expect } from 'vitest';
import { Editor } from '@tiptap/core';
import StarterKit from '@tiptap/starter-kit';
import { assert } from './riteway';
import { assert } from '@/test/riteway';
import { CodeBlockShiki } from '../CodeBlockShikiExtension';

function createEditor(content?: string) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, it, expect, vi } from 'vitest';
import React from 'react';
import { render, screen, fireEvent } from '@testing-library/react';
import { assert } from './riteway';
import { assert } from '@/test/riteway';
import { LanguageSelector } from '../LanguageSelector';
import type { NodeViewProps } from '@tiptap/react';

Expand Down
13 changes: 0 additions & 13 deletions apps/web/src/lib/editor/code-block/__tests__/riteway.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest';
import { assert } from './riteway';
import { assert } from '@/test/riteway';
import { tokenizeCode } from '../shiki-highlighter';

describe('Shiki Highlighter Service', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, it, expect, beforeAll } from 'vitest';
import { createHighlighter, type Highlighter, type BundledLanguage } from 'shiki';
import { assert } from './riteway';
import { assert } from '@/test/riteway';
import { sudolangGrammar } from '../sudolang-grammar';

let highlighter: Highlighter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, it } from 'vitest';
import type { ThemedToken } from 'shiki';
import { assert } from './riteway';
import { assert } from '@/test/riteway';
import { tokensToDecorationSpecs } from '../token-decorations';

function makeToken(content: string, color?: string, fontStyle?: number): ThemedToken {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, vi, beforeEach } from 'vitest';
import { assert } from './riteway';
import { assert } from '@/test/riteway';

// Track calls for assertions
const mockSelectFrom = vi.fn().mockReturnValue({ where: vi.fn().mockResolvedValue([]) });
Expand Down
13 changes: 0 additions & 13 deletions apps/web/src/lib/integrations/google-calendar/__tests__/riteway.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, vi, beforeEach } from 'vitest';
import { assert } from './riteway';
import { assert } from '@/test/riteway';

// Mock database
const mockFindFirst = vi.fn();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, vi, beforeEach } from 'vitest';
import { assert } from './riteway';
import { assert } from '@/test/riteway';

/**
* Compaction Service Tests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, vi, beforeEach } from 'vitest';
import { assert } from './riteway';
import { assert } from '@/test/riteway';

/**
* Discovery Service Tests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, vi, beforeEach } from 'vitest';
import { assert } from './riteway';
import { assert } from '@/test/riteway';

/**
* Integration Service Tests
Expand Down
13 changes: 0 additions & 13 deletions apps/web/src/lib/memory/__tests__/riteway.ts

This file was deleted.

13 changes: 0 additions & 13 deletions apps/web/src/lib/utils/__tests__/riteway.ts

This file was deleted.

2 changes: 1 addition & 1 deletion apps/web/src/lib/utils/__tests__/timestamp.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it } from 'vitest';
import { assert } from './riteway';
import { assert } from '@/test/riteway';
import { toISOTimestamp } from '../timestamp';

describe('toISOTimestamp', () => {
Expand Down
1 change: 1 addition & 0 deletions apps/web/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const packagesDir = path.resolve(__dirname, '../../packages')
export default defineConfig({
plugins: [react()],
test: {
name: 'web',
globals: true,
environment: 'jsdom',
css: true,
Expand Down
10 changes: 1 addition & 9 deletions vitest.workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,7 @@ export default defineWorkspace([
globals: true,
},
},
{
test: {
name: 'web',
root: './apps/web',
environment: 'jsdom',
globals: true,
setupFiles: ['./src/test/setup.ts'],
},
},
'./apps/web/vitest.config.ts',
{
test: {
name: 'realtime',
Expand Down
Loading