move tests to src/

This commit is contained in:
2026-03-13 17:42:34 +01:00
parent 893309b308
commit 470b92d0bd
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import { beforeEach, describe, expect, test, mock } from 'bun:test';
import { MATCH_STATES } from '../../src/lib/server/match/types';
import { MATCH_STATES } from './types';
const mocks = {
db: {
@@ -51,7 +51,7 @@ mock.module('$lib/server/osu/api', () => ({
getUser: mock()
}));
const { pickMap } = await import('../../src/lib/server/match/engine');
const { pickMap } = await import('./engine');
describe('pickMap', () => {
beforeEach(() => {

View File

@@ -1,5 +1,5 @@
import { beforeEach, describe, expect, test, mock } from 'bun:test';
import { MATCH_STATES } from '../../src/lib/server/match/types';
import { MATCH_STATES } from './types';
const mocks = {
db: {
@@ -41,7 +41,7 @@ mock.module('$lib/server/match/engine', () => ({
createMatch: mock()
}));
const { joinQueue } = await import('../../src/lib/server/match/queue');
const { joinQueue } = await import('./queue');
describe('joinQueue', () => {
beforeEach(() => {