forked from awslabs/aws-jwt-verify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.ts
25 lines (23 loc) · 976 Bytes
/
cypress.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { defineConfig } from "cypress";
export default defineConfig({
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
// https://docs.cypress.io/api/node-events/browser-launch-api
on("before:browser:launch", (browser, launchOptions) => {
if (browser.family === "chromium" && browser.name !== "electron") {
// https://developer.mozilla.org/en-US/docs/Web/API/EcdsaParams
// From version 113: Ed25519 algorithm is behind the #enable-experimental-web-platform-features preference
launchOptions.args.push(
"--enable-experimental-web-platform-features"
);
return launchOptions;
}
});
// eslint-disable-next-line @typescript-eslint/no-var-requires
return require("./cypress/plugins/index.js")(on, config);
},
baseUrl: "http://127.0.0.1:5173/",
},
});