mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
16 lines
427 B
TypeScript
16 lines
427 B
TypeScript
// fix https://github.com/vitest-dev/vitest/issues/6690
|
|
|
|
import { expect, test } from 'vitest'
|
|
import { instances, runBrowserTests } from './utils'
|
|
|
|
test('setup file imports the same modules', async () => {
|
|
const { stderr, stdout } = await runBrowserTests(
|
|
{
|
|
root: './fixtures/setup-file',
|
|
},
|
|
)
|
|
|
|
expect(stderr).toReportNoErrors()
|
|
expect(stdout).toReportPassedTest('module-equality.test.ts', instances)
|
|
})
|