feat: complete server-backed six-lesson app and trial tooling
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { readFileSync, rmSync } from 'node:fs'
|
||||
import { join } from 'node:path'
|
||||
|
||||
export default function globalTeardown() {
|
||||
const statePath = join(process.cwd(), 'e2e', '.runtime', 'state.json')
|
||||
try {
|
||||
const { tempDir } = JSON.parse(readFileSync(statePath, 'utf8')) as { tempDir: string }
|
||||
rmSync(tempDir, { recursive: true, force: true })
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
try {
|
||||
rmSync(join(process.cwd(), 'e2e', '.runtime'), { recursive: true, force: true })
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user