mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-20 16:25:55 +00:00
13 lines
416 B
TypeScript
13 lines
416 B
TypeScript
import { existsSync } from 'node:fs'
|
|
import { fileURLToPath } from 'node:url'
|
|
import { rm } from 'node:fs/promises'
|
|
import { test as teardown } from '@playwright/test'
|
|
|
|
const fixtureDir = fileURLToPath(new URL('../fixtures-temp/hmr', import.meta.url))
|
|
|
|
teardown('remove temporary hmr fixture directory', async () => {
|
|
if (existsSync(fixtureDir)) {
|
|
await rm(fixtureDir, { force: true, recursive: true })
|
|
}
|
|
})
|