mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
10 lines
243 B
TypeScript
10 lines
243 B
TypeScript
import { test, expect } from 'vitest';
|
|
|
|
test('custom', () => {
|
|
expect(window).toHaveProperty('CUSTOM_INJECTED', true)
|
|
})
|
|
|
|
test('importmap is injected', () => {
|
|
expect(import.meta.resolve('some-lib')).toBe('https://vitest.dev/some-lib')
|
|
})
|