Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/test/utils/globalE2eSetup.ts

22 lines
586 B
TypeScript
Raw Permalink Normal View History

import { workspaceDir } from "./constants"
import { clean } from "./helpers"
import * as wtfnode from "./wtfnode"
2021-02-01 22:38:53 +01:00
/**
* Perform workspace cleanup and authenticate. This should be ran before e2e
* tests execute.
*/
export default async function () {
console.log("\n🚨 Running Global Setup for Playwright End-to-End Tests")
console.log(" Please hang tight...")
// Cleanup workspaces from previous tests.
await clean(workspaceDir)
if (process.env.WTF_NODE) {
wtfnode.setup()
}
console.log("✅ Global Setup for Playwright End-to-End Tests is now complete.")
2021-02-01 22:38:53 +01:00
}