mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-30 01:29:58 -06:00
fix: bad export
This commit is contained in:
committed by
Eric Dubé
parent
8a05b65ff3
commit
a397707c7b
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { TestKernel } from '../../tools/test.js';
|
||||
import { TestKernel } from '../../tools/test.mjs';
|
||||
import { Core2Module } from '../modules/core/Core2Module.js';
|
||||
import { WebModule } from '../modules/web/WebModule.js';
|
||||
import { TestService } from './TestService.js';
|
||||
@@ -13,9 +13,9 @@ describe('testing with TestKernel', () => {
|
||||
services.registerService('test', TestService);
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
testKernel.boot();
|
||||
|
||||
|
||||
const svc_test = testKernel.services?.get('test');
|
||||
|
||||
expect(svc_test).toBeInstanceOf(TestService);
|
||||
@@ -25,13 +25,12 @@ describe('testing with TestKernel', () => {
|
||||
testKernel.add_module(new Core2Module());
|
||||
testKernel.add_module(new WebModule());
|
||||
testKernel.boot();
|
||||
|
||||
|
||||
const { services } = testKernel;
|
||||
await services.ready;
|
||||
|
||||
await services?.ready;
|
||||
|
||||
const svc_webServer = services?.get('web-server');
|
||||
|
||||
expect(svc_webServer.constructor.name).toBe('WebServerService');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class TestLogger {
|
||||
* - Context creation and management
|
||||
* Does not include full service initialization or legacy service support
|
||||
*/
|
||||
class TestKernel extends AdvancedBase {
|
||||
export class TestKernel extends AdvancedBase {
|
||||
constructor () {
|
||||
super();
|
||||
|
||||
@@ -267,7 +267,3 @@ const main = async () => {
|
||||
if ( require.main === module ) {
|
||||
main();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
TestKernel,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user