11import { AssetManagerLibrary } from "@nanoforge-dev/asset-manager" ;
22import { ClearContext , type IConfigRegistry , InitContext } from "@nanoforge-dev/common" ;
3+ import { beforeAll , beforeEach , describe , expect , it } from "vitest" ;
34
45import { EditableApplicationContext } from "../../core/src/common/context/contexts/application.editable-context" ;
56import { EditableLibraryManager } from "../../core/src/common/library/manager/library.manager" ;
@@ -43,13 +44,13 @@ describe("ECSLibrary", () => {
4344 registry = ecs . registry ;
4445 } ) ;
4546
46- test ( "init and spawn entity" , async ( ) => {
47+ it ( "init and spawn entity" , async ( ) => {
4748 const entity = registry . spawnEntity ( ) ;
4849 expect ( entity ) . toBeDefined ( ) ;
4950 expect ( entity . getId ( ) ) . toBe ( 0 ) ;
5051 } ) ;
5152
52- test ( "add component to entity" , async ( ) => {
53+ it ( "add component to entity" , async ( ) => {
5354 const entity = registry . spawnEntity ( ) ;
5455 const pos = new Position ( 1 , 2 ) ;
5556 registry . addComponent ( entity , pos ) ;
@@ -58,7 +59,7 @@ describe("ECSLibrary", () => {
5859 expect ( components . size ( ) ) . toBe ( 1 ) ;
5960 } ) ;
6061
61- test ( "clear" , async ( ) => {
62+ it ( "clear" , async ( ) => {
6263 await ecs . __clear ( clearContext ) ;
6364 } ) ;
6465} ) ;
0 commit comments