title: Vitest fails to load package ([vite-node] Failed to load meteor/meteor)
body: <p>I set up a new meteor project with TypeScript and installed vitest.</p>
  <p>When I run vitest though, I get the following error:</p>
  <pre><code> FAIL  tests/main.test.ts [ tests/main.test.ts ]
  Error: [vite-node] Failed to load meteor/meteor
  </code></pre>
  <p>The test is straightforward:</p>
  <pre><code>import { Meteor } from 'meteor/meteor'
  import { describe, test, expect } from 'vitest'
  
  // ---
  
  describe('replay', function () {
      test('package.json has correct name', async function () {
          const { name } = await import('../package.json')
          expect(name).toBe('replay')
      })
  
      if (Meteor.isClient) {
          test('client is not server', function () {
              expect(Meteor.isServer).toBe(false)
          })
      }
  
      if (Meteor.isServer) {
          test('server is not client', function () {
              expect(Meteor.isClient).toBe(false)
          })
      }
  })
  </code></pre>
  <p>The repository is publicly available here: <a href="https://github.com/repetitioestmaterstudiorum/replay" rel="nofollow noreferrer">https://github.com/repetitioestmaterstudiorum/replay</a></p>
  <p>I don't understand why vitest can't import meteor. It's declaration is global thanks to &quot;node_modules/@types/meteor&quot;.</p>