1- import { jest , expect , describe , it , beforeEach } from "@jest/globals " ;
1+ import { vitest , expect , describe , it , beforeEach } from "vitest " ;
22import { Pointer } from "@ethdebug/format" ;
33import { Machine } from "../machine.js" ;
44import { Data } from "../data.js" ;
@@ -11,25 +11,25 @@ describe("dereference", () => {
1111 state = {
1212 stack : {
1313 length : Promise . resolve ( 10n ) ,
14- peek : jest . fn ( async ( ) => Data . fromBytes ( new Uint8Array ( [ 0x11 , 0x22 , 0x33 , 0x44 ] ) ) ) ,
14+ peek : vitest . fn ( async ( ) => Data . fromBytes ( new Uint8Array ( [ 0x11 , 0x22 , 0x33 , 0x44 ] ) ) ) ,
1515 } ,
1616 memory : {
17- read : jest . fn ( async ( ) => Data . fromBytes ( new Uint8Array ( [ 0x55 , 0x66 , 0x77 , 0x88 ] ) ) ) ,
17+ read : vitest . fn ( async ( ) => Data . fromBytes ( new Uint8Array ( [ 0x55 , 0x66 , 0x77 , 0x88 ] ) ) ) ,
1818 } ,
1919 storage : {
20- read : jest . fn ( async ( ) => Data . fromBytes ( new Uint8Array ( [ 0xaa , 0xbb , 0xcc , 0xdd ] ) ) ) ,
20+ read : vitest . fn ( async ( ) => Data . fromBytes ( new Uint8Array ( [ 0xaa , 0xbb , 0xcc , 0xdd ] ) ) ) ,
2121 } ,
2222 calldata : {
23- read : jest . fn ( async ( ) => Data . fromBytes ( new Uint8Array ( [ 0x11 , 0x22 , 0x33 , 0x44 ] ) ) ) ,
23+ read : vitest . fn ( async ( ) => Data . fromBytes ( new Uint8Array ( [ 0x11 , 0x22 , 0x33 , 0x44 ] ) ) ) ,
2424 } ,
2525 returndata : {
26- read : jest . fn ( async ( ) => Data . fromBytes ( new Uint8Array ( [ 0x55 , 0x66 , 0x77 , 0x88 ] ) ) ) ,
26+ read : vitest . fn ( async ( ) => Data . fromBytes ( new Uint8Array ( [ 0x55 , 0x66 , 0x77 , 0x88 ] ) ) ) ,
2727 } ,
2828 transient : {
29- read : jest . fn ( async ( ) => Data . fromBytes ( new Uint8Array ( [ 0xaa , 0xbb , 0xcc , 0xdd ] ) ) ) ,
29+ read : vitest . fn ( async ( ) => Data . fromBytes ( new Uint8Array ( [ 0xaa , 0xbb , 0xcc , 0xdd ] ) ) ) ,
3030 } ,
3131 code : {
32- read : jest . fn ( async ( ) => Data . fromBytes ( new Uint8Array ( [ 0x11 , 0x22 , 0x33 , 0x44 ] ) ) ) ,
32+ read : vitest . fn ( async ( ) => Data . fromBytes ( new Uint8Array ( [ 0x11 , 0x22 , 0x33 , 0x44 ] ) ) ) ,
3333 } ,
3434 } as unknown as Machine . State ;
3535 } ) ;
0 commit comments