Skip to content

Commit

Permalink
test(supabase): remove flaky auth from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aliemir committed Apr 25, 2024
1 parent 7b13515 commit 05b7cce
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 55 deletions.
11 changes: 0 additions & 11 deletions packages/supabase/test/create/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@ import supabaseClient from "../supabaseClient";
import "./index.mock";

describe("create", () => {
beforeAll(async () => {
await supabaseClient.auth.signInWithPassword({
email: "info@refine.dev",
password: "refine-supabase",
});
});

afterAll(async () => {
await supabaseClient.auth.signOut();
});

it("correct response with `select`", async () => {
const { data } = await dataProvider(supabaseClient).create({
resource: "posts",
Expand Down
11 changes: 0 additions & 11 deletions packages/supabase/test/createMany/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@ import supabaseClient from "../supabaseClient";
import "./index.mock";

describe("createMany", () => {
beforeAll(async () => {
await supabaseClient.auth.signInWithPassword({
email: "info@refine.dev",
password: "refine-supabase",
});
});

afterAll(async () => {
await supabaseClient.auth.signOut();
});

it("correct response with `select`", async () => {
const { data } = await dataProvider(supabaseClient).createMany!({
resource: "posts",
Expand Down
11 changes: 0 additions & 11 deletions packages/supabase/test/deleteMany/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@ import supabaseClient from "../supabaseClient";
import "./index.mock";

describe("deleteMany", () => {
beforeAll(async () => {
await supabaseClient.auth.signInWithPassword({
email: "info@refine.dev",
password: "refine-supabase",
});
});

afterAll(async () => {
await supabaseClient.auth.signOut();
});

it("correct response", async () => {
const promise = dataProvider(supabaseClient).deleteMany!({
resource: "posts",
Expand Down
11 changes: 0 additions & 11 deletions packages/supabase/test/update/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@ import supabaseClient from "../supabaseClient";
import "./index.mock";

describe("update", () => {
beforeAll(async () => {
await supabaseClient.auth.signInWithPassword({
email: "info@refine.dev",
password: "refine-supabase",
});
});

afterAll(async () => {
await supabaseClient.auth.signOut();
});

it("correct response with `select`", async () => {
const { data } = await dataProvider(supabaseClient).update({
id: 1,
Expand Down
11 changes: 0 additions & 11 deletions packages/supabase/test/updateMany/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@ import supabaseClient from "../supabaseClient";
import "./index.mock";

describe("updateMany", () => {
beforeAll(async () => {
await supabaseClient.auth.signInWithPassword({
email: "info@refine.dev",
password: "refine-supabase",
});
});

afterAll(async () => {
await supabaseClient.auth.signOut();
});

it("correct response with `select`", async () => {
const { data } = await dataProvider(supabaseClient).updateMany!({
resource: "posts",
Expand Down

0 comments on commit 05b7cce

Please sign in to comment.