mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
13 lines
465 B
TypeScript
13 lines
465 B
TypeScript
import { expect, test } from 'vitest'
|
|
import { editFile, page, untilUpdated } from '~utils'
|
|
|
|
test('should re-run transform when dependencies are edited', async () => {
|
|
expect(await page.textContent('#transform-count')).toBe('1')
|
|
|
|
editFile('plugin-dep.js', (str) => str)
|
|
await untilUpdated(() => page.textContent('#transform-count'), '2')
|
|
|
|
editFile('plugin-dep-load.js', (str) => str)
|
|
await untilUpdated(() => page.textContent('#transform-count'), '3')
|
|
})
|