1
1
import { createDojoStore } from "../state/zustand" ;
2
- import { ParsedEntity , SchemaType } from "../types" ;
3
- import { describe , it , beforeEach , expect } from "vitest" ;
2
+ import { ParsedEntity } from "../types" ;
3
+ import { describe , it , beforeEach } from "vitest" ;
4
4
import Benchmark from "benchmark" ;
5
5
import {
6
- schema ,
7
6
MockSchemaType ,
8
7
PlayerModel ,
9
8
GameModel ,
@@ -79,7 +78,7 @@ describe("Zustand Store Performance Tests", () => {
79
78
. on ( "cycle" , ( event : any ) => {
80
79
console . log ( String ( event . target ) ) ;
81
80
} )
82
- . on ( "complete" , function ( ) {
81
+ . on ( "complete" , function ( this : any ) {
83
82
console . log ( "Fastest is " + this . filter ( "fastest" ) . map ( "name" ) ) ;
84
83
} )
85
84
. run ( { async : false } ) ;
@@ -112,7 +111,7 @@ describe("Zustand Store Performance Tests", () => {
112
111
. on ( "cycle" , ( event : any ) => {
113
112
console . log ( String ( event . target ) ) ;
114
113
} )
115
- . on ( "complete" , function ( ) {
114
+ . on ( "complete" , function ( this : any ) {
116
115
console . log ( "Fastest is " + this . filter ( "fastest" ) . map ( "name" ) ) ;
117
116
} )
118
117
. run ( { async : false } ) ;
@@ -137,7 +136,7 @@ describe("Zustand Store Performance Tests", () => {
137
136
. on ( "cycle" , ( event : any ) => {
138
137
console . log ( String ( event . target ) ) ;
139
138
} )
140
- . on ( "complete" , function ( ) {
139
+ . on ( "complete" , function ( this : any ) {
141
140
console . log ( "Fastest is " + this . filter ( "fastest" ) . map ( "name" ) ) ;
142
141
} )
143
142
. run ( { async : false } ) ;
@@ -161,7 +160,7 @@ describe("Zustand Store Performance Tests", () => {
161
160
. on ( "cycle" , ( event : any ) => {
162
161
console . log ( String ( event . target ) ) ;
163
162
} )
164
- . on ( "complete" , function ( ) {
163
+ . on ( "complete" , function ( this : any ) {
165
164
console . log ( "Fastest is " + this . filter ( "fastest" ) . map ( "name" ) ) ;
166
165
} )
167
166
. run ( { async : false } ) ;
0 commit comments