Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppression des tests e2e #172

Merged
merged 11 commits into from Feb 6, 2023
7 changes: 0 additions & 7 deletions .env.test

This file was deleted.

45 changes: 0 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions package.json
Expand Up @@ -12,12 +12,9 @@
"scripts": {
"dev": "vite dev --port 3000 --strictPort",
"build": "vite build",
"build:test": "vite build --mode test",
"start": "node build",
"preview": "vite preview --port 3000 --strictPort",
cedricr marked this conversation as resolved.
Show resolved Hide resolved
"test": "playwright test",
"test:debug": "playwright test --debug",
"test:unit": "vitest",
"test": "vitest",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --output human-verbose --threshold error --use-new-transformation true",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
Expand All @@ -27,7 +24,6 @@
"security-scan": "ggshield secret scan path -r . -y"
},
"devDependencies": {
"@playwright/test": "^1.28.1",
"@sentry/svelte": "^7.26.0",
"@sentry/tracing": "^7.26.0",
"@sveltejs/adapter-node": "^1.0.0",
Expand Down
15 changes: 0 additions & 15 deletions playwright.config.ts

This file was deleted.

4 changes: 1 addition & 3 deletions src/routes/+layout.ts
@@ -1,12 +1,10 @@
import { browser } from "$app/environment";
import { CRISP_ID, ENVIRONMENT } from "$lib/env";
import { CRISP_ID } from "$lib/env";
import { userInfo, validateCredsAndFillUserInfo } from "$lib/utils/auth";
import { redirect } from "@sveltejs/kit";
import { get } from "svelte/store";
import type { LayoutLoad } from "./$types";

// No SSR for testing => we can't intercept request server side
export const ssr = ENVIRONMENT === "testing" ? false : undefined;
export const prerender = false;
export const load: LayoutLoad = async ({ url }) => {
let currentUserInfo = get(userInfo);
Expand Down
37 changes: 0 additions & 37 deletions tests/README.md

This file was deleted.

127 changes: 0 additions & 127 deletions tests/mocks/mockService.ts

This file was deleted.