1
0
mirror of https://github.com/coder/code-server.git synced 2024-12-04 15:00:38 +08:00
code-server/test/utils/globalE2eSetup.ts

22 lines
586 B
TypeScript
Raw Normal View History

import { workspaceDir } from "./constants"
import { clean } from "./helpers"
import * as wtfnode from "./wtfnode"
2021-02-02 05:38:53 +08: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-02 05:38:53 +08:00
}