Skip to content

Commit

Permalink
refactor: from mocha chai to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Feb 18, 2025
1 parent 0b1017d commit 99eaf29
Show file tree
Hide file tree
Showing 79 changed files with 726 additions and 394 deletions.
2 changes: 2 additions & 0 deletions cypress/e2e/activate_totp/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { generateToken } from "@sunknudsen/totp";

import { describe, it } from "vitest";

describe("add 2fa authentication", () => {
it("should add 2fa authentication on account user", function () {
cy.visit("/connection-and-account");
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/check_email_deliverability/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
describe("should suggest valid email address", () => {
it("should sign-in", function () {
cy.visit("http://localhost:4001");
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/delete_account/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

describe("delete account", () => {
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/delete_totp/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
describe("delete TOTP connexion", () => {
it("should delete TOTP application", function () {
cy.visit("/connection-and-account");
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/join_and_moderation/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

describe("join organizations", () => {
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/join_must_confirm/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

describe("join organizations", () => {
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/join_org_with_trackdechets_domain/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

//
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/join_org_with_verified_domain/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

describe("join organizations", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

describe("join organizations", () => {
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/join_with_official_contact_email/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

describe("join organizations", () => {
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/reauthenticate_on_admin_page/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
describe("force recent connexion + 2FA on admin pages", () => {
it("should be redirected after long connexion", function () {
cy.visit("/");
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/redirect_after_session_expiration/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
describe("redirect after session expiration", () => {
it("should be redirected to organization management page", function () {
cy.visit("/manage-organizations");
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/reset_password/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

describe("sign-in with magic link", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

describe("set info after account provisioning", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { beforeEach, describe, it } from "vitest";
//

describe("sign-in from proconnect federation client", () => {
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/signin_from_standard_client/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

describe("sign-in from standard client", () => {
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/signin_with_email_verification/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

describe("sign-in with email verification renewal", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

describe("sign-in with email verification renewal", () => {
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/signin_with_legacy_scope/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

describe("sign-in with legacy scope", () => {
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/signin_with_magic_link/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

describe("sign-in with magic link", () => {
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/signin_with_right_acr/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { beforeEach, describe, it } from "vitest";
describe("sign-in with a client not requiring any acr", () => {
beforeEach(() => {
cy.visit("http://localhost:4000");
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/signin_with_totp/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
describe("sign-in with TOTP on untrusted browser", () => {
it("should sign-in with password and TOTP", function () {
cy.visit("http://localhost:4000");
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/signup_entreprise_unipersonnelle/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
//

describe("Signup into new entreprise unipersonnelle", () => {
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/update_personal_information/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, it } from "vitest";
describe("Signup into new entreprise unipersonnelle", () => {
it("Should send email when user updates personal information", function () {
cy.visit("/personal-information");
Expand Down
Loading

0 comments on commit 99eaf29

Please sign in to comment.