Files
2022-11-16 14:36:09 +01:00

10 lines
355 B
TypeScript

import { expect, test } from 'vitest'
import { editFile, page, untilUpdated } from '~utils'
test('should re-run transform when plugin-dep file is edited', async () => {
expect(await page.textContent('#transform-count')).toBe('1')
await editFile('plugin-dep.js', (str) => str)
await untilUpdated(() => page.textContent('#transform-count'), '2')
})