mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-18 19:30:27 +08:00
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>
17 lines
397 B
TypeScript
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);
|