Fix Azure e2e test so it doesn't leak (#1248)
<!-- This is an auto-generated description by cubic. --> ## Summary by cubic Scoped Azure e2e test env setup to prevent leaking variables across tests. Added testWithConfigSkipIfWindows and moved Azure env vars into a per-test preLaunchHook; the Azure test now skips on Windows. <!-- End of auto-generated description by cubic. -->
This commit is contained in:
@@ -1152,6 +1152,17 @@ export function testWithConfig(config: ElectronConfig) {
|
||||
});
|
||||
}
|
||||
|
||||
export function testWithConfigSkipIfWindows(config: ElectronConfig) {
|
||||
if (os.platform() === "win32") {
|
||||
return test.skip;
|
||||
}
|
||||
return test.extend({
|
||||
electronConfig: async ({}, use) => {
|
||||
await use(config);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// Wrapper that skips tests on Windows platform
|
||||
export const testSkipIfWindows = os.platform() === "win32" ? test.skip : test;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user