TestCafe - Shared singleton between testcafe and application
A TestCafe test fixture is a regular node.js script, and it is executed on the server side. You are trying to share your module between different contexts (node.js server-side and browser client-side).
You can put the specified value into the global window
object using the ClientFunction or Inject Client Scripts approach and obtain it from the Vue script.