cleanup tests, codegen, and importing handler

This commit is contained in:
jacob
2024-05-02 17:27:57 -05:00
parent d3245c8a0c
commit d7ebdb2edc
10 changed files with 30 additions and 103 deletions

View File

@@ -1,6 +1,6 @@
import { assertType, describe, it } from 'vitest';
import { __Services } from '../../src/core/structures';
import * as __Services from '../../src/core/structures/default-services';
import * as Contracts from '../../src/core/interfaces';
describe('default contracts', () => {

View File

@@ -2,7 +2,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
import { CoreContainer } from '../../src/core/ioc/container';
import { EventEmitter } from 'events';
import { Disposable, Emitter, Init, Logging } from '../../src/core/interfaces';
import { __Services } from '../../src/core/structures'
import * as __Services from '../../src/core/structures/default-services'
import { CoreDependencies } from '../../src/types/ioc';
describe('ioc container', () => {

View File

@@ -5,7 +5,7 @@ import { Presence } from '../../src';
// Example test suite for the module function
describe('module function', () => {
it('should return a valid configuration', () => {
const config: Presence.Config<['dependency1', 'dependency2']> = Presence.module({
const config = Presence.module({
inject: ['dependency1', 'dependency2'],
execute: vi.fn(),
});

View File

@@ -1,6 +1,6 @@
import { SpyInstance, afterAll, beforeEach, describe, expect, it, vi } from 'vitest';
import { CoreContainer } from '../../src/core/ioc/container';
import { __Services } from '../../src/core/structures/';
import * as __Services from '../../src/core/structures/default-services';
import { faker } from '@faker-js/faker';
import { commandModule, CommandType } from '../../src';