refactor: add src alias to @/
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { AsyncQueue } from '../../src/utils/async-queue';
|
||||
import { AsyncQueue } from '@/utils/async-queue';
|
||||
|
||||
describe('AsyncQueue', () => {
|
||||
describe('push', () => {
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
validateCommand,
|
||||
parseCommand,
|
||||
type CommandSchema,
|
||||
} from '../../src/utils/command';
|
||||
} from '@/utils/command';
|
||||
|
||||
describe('parseCommandSchema with inline-schema', () => {
|
||||
it('should parse schema with typed params', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { parseCommandSchema } from '../../src/utils/command/schema-parse';
|
||||
import { parseCommandSchema } from '@/utils/command/schema-parse';
|
||||
import {
|
||||
createCommandRegistry,
|
||||
registerCommand,
|
||||
@@ -10,8 +10,8 @@ import {
|
||||
createCommandRunnerContext,
|
||||
type CommandRegistry,
|
||||
type CommandRunnerContextExport,
|
||||
} from '../../src/utils/command/command-registry';
|
||||
import type { CommandRunner, PromptEvent } from '../../src/utils/command/command-runner';
|
||||
} from '@/utils/command/command-registry';
|
||||
import type { CommandRunner, PromptEvent } from '@/utils/command/command-runner';
|
||||
|
||||
type TestContext = {
|
||||
counter: number;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { parseCommand, parseCommandSchema, validateCommand } from '../../src/utils/command';
|
||||
import { parseCommand, parseCommandSchema, validateCommand } from '@/utils/command';
|
||||
|
||||
describe('parseCommandSchema', () => {
|
||||
it('should parse empty schema', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { parseCommand, type Command } from '../../src/utils/command';
|
||||
import { parseCommand, type Command } from '@/utils/command';
|
||||
|
||||
describe('parseCommand', () => {
|
||||
it('should parse empty string', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { createEntityCollection, Entity, entity } from '../../src/utils/entity';
|
||||
import { createEntityCollection, Entity, entity } from '@/utils/entity';
|
||||
|
||||
type TestEntity = {
|
||||
id: string;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { createRNG } from '../../src/utils/rng';
|
||||
import { createRNG } from '@/utils/rng';
|
||||
|
||||
describe('createRNG', () => {
|
||||
it('should create RNG with default seed', () => {
|
||||
|
||||
Reference in New Issue
Block a user