Implement fake context with ts