mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
15 lines
441 B
TypeScript
15 lines
441 B
TypeScript
// @vitest-environment node
|
|
|
|
// @ts-expect-error untyped
|
|
import { importMetaUrl } from '@test/test-dep-url'
|
|
|
|
import { expect, test } from 'vitest'
|
|
|
|
// TODO: flaky on Windows
|
|
// https://github.com/vitest-dev/vitest/pull/5215#discussion_r1492066033
|
|
test('import.meta.url', () => {
|
|
if (process.platform !== 'win32') {
|
|
expect(importMetaUrl).toContain('/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/deps_ssr/')
|
|
}
|
|
})
|