- Added Playwright as a development dependency for end-to-end testing. - Updated package.json to include test scripts for Playwright. - Enhanced .gitignore to exclude Playwright test results and cache files. - Improved content extraction logic in various components to handle new content types. Made-with: Cursor
12 lines
301 B
TypeScript
12 lines
301 B
TypeScript
import { writeFileSync } from 'fs'
|
|
import { resolve } from 'path'
|
|
|
|
const CHATS_PATH = resolve(process.cwd(), '.dev', 'chats.json')
|
|
|
|
export default async function globalTeardown() {
|
|
const backup = process.env.AIUI_E2E_CHATS_BACKUP
|
|
if (backup) {
|
|
writeFileSync(CHATS_PATH, backup, 'utf-8')
|
|
}
|
|
}
|