Files
radicle-explorer/cypress/support/component.ts
T
Rūdolfs Ošiņš 9b8a9a46dd Upgrade Cypress dependency
This gets rid of the testing-library-* and cypress-vite-devserver
dependencies and updates the specs according to the latest Cypress
documentation.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-26 16:34:30 +02:00

17 lines
397 B
TypeScript

import { mount } from "cypress/svelte";
import { Buffer } from "buffer";
//@ts-expect-error We need Buffer on the window object in the test env for component testing
window.Buffer = Buffer;
declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace Cypress {
interface Chainable {
mount: typeof mount;
}
}
}
Cypress.Commands.add("mount", mount);