Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest';
import { createPolicyTestClient } from './utils';
import { createPolicyTestClient } from '../utils';

describe('auth() tests', () => {
it('works with string id non-null test', async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from 'vitest';
import { definePlugin } from '../../src/client';
import { createPolicyTestClient } from './utils';
import { definePlugin } from '../../../src/client';
import { createPolicyTestClient } from '../utils';

describe('client extensions tests for policies', () => {
it('query override one model', async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest';
import { createPolicyTestClient } from './utils';
import { createPolicyTestClient } from '../utils';

describe('connect and disconnect tests', () => {
const modelToMany = `
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest';
import { createPolicyTestClient } from './utils';
import { createPolicyTestClient } from '../utils';

describe('createManyAndReturn tests', () => {
it('works with model-level policies', async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest';
import { createPolicyTestClient } from './utils';
import { createPolicyTestClient } from '../utils';

describe('cross-model field comparison tests', () => {
it('works with to-one relation', async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest';
import { createPolicyTestClient } from './utils';
import { createPolicyTestClient } from '../utils';

describe('currentModel tests', () => {
it('works in models', async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest';
import { createPolicyTestClient } from './utils';
import { createPolicyTestClient } from '../utils';

describe('currentOperation tests', () => {
it('works with specific rules', async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { beforeEach, describe, expect, it } from 'vitest';
import { createPolicyTestClient } from './utils';
import { createPolicyTestClient } from '../utils';

describe('deep nested operations tests', () => {
const model = `
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest';
import { createPolicyTestClient } from './utils';
import { createPolicyTestClient } from '../utils';

describe('empty policy tests', () => {
it('works with simple operations', async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest';
import { createPolicyTestClient } from './utils';
import { createPolicyTestClient } from '../utils';

describe('field comparison tests', () => {
it('works with policies involving field comparison', async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import path from 'path';
import { afterEach, beforeAll, describe, expect, it } from 'vitest';
import { createPolicyTestClient } from './utils';
import { QueryError } from '../../src';
import { createPolicyTestClient } from '../utils';
import { QueryError } from '../../../src';

describe('With Policy: multi-field unique', () => {
describe('Policy tests multi-field unique', () => {
let origDir: string;

beforeAll(async () => {
Expand Down
Loading