How to properly test $page.data in vitest?
              
              #9131
            
            
              
                Unanswered
              
          
                  
                    
                      catrektson
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to know the proper way of testing
$page.datausingvitest? I have followed this guide but the tests keeps on failing.I know these cases are usually for E2E tests (i.e.
playwright) but I was tasked to follow this conceptAs you can see with the test result above, it keeps receiving
undefined.Beta Was this translation helpful? Give feedback.
All reactions