import { reactive , isReactive , isProxy } from "../reactive" ; describe ( "reactive" , ( ) => { it ( "happy path" , ( ) => { const original = { foo : 1 , bar : { baz : 2 } } ; const observed = reactive ( original ) ; expect ( observed ) . not . toBe ( original ) ; expect ( observed . foo ) . toBe ( 1 ) ; expect ( isReactive ( observed ) ) . toBe ( true ) ; expect ( isReactive ( original ) ) . toBe ( false ) ; expect ( isReactive ( observed . bar ) ) . toBe ( true ) ; expect ( isProxy ( observed ) ) . toBe ( true ) ; } ) ; } ) ;