Skip to content

Commit 01e7759

Browse files
committed
[Tests] Re-use projects for integration tests (#2575)
Co-authored-by: Claude <noreply@anthropic.com> Synced from monorepo@8a623367c87ce9a357e56bf416b664ea663af205
1 parent 922ca52 commit 01e7759

11 files changed

Lines changed: 13 additions & 13 deletions

.sync-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7469fe1f2b9002e4cc987c7524e99b2eb2b4543c
1+
8a623367c87ce9a357e56bf416b664ea663af205

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838
"zod-config": "1.4.0",
3939
"@xata.io/ai": "0.1.0",
4040
"@xata.io/api": "0.1.0",
41-
"@xata.io/config": "0.0.0",
4241
"@xata.io/lang": "0.0.1",
42+
"@xata.io/config": "0.0.0",
4343
"@xata.io/pgroll": "0.9.0",
4444
"@xata.io/pgstream": "0.2.0",
45-
"@xata.io/tsconfig": "0.0.1",
46-
"@xata.io/test-utils": "0.0.0",
4745
"@xata.io/sql": "0.1.3",
46+
"@xata.io/test-utils": "0.0.0",
47+
"@xata.io/tsconfig": "0.0.1",
4848
"@xata.io/utils": "0.1.0"
4949
},
5050
"scripts": {

src/commands/branch/describe.integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import stripAnsi from 'strip-ansi';
44
import { getNthArgOfNthCall, getTestContext, TEST_XATA_ORG } from '~/lib/test-utils';
55
import { implementation } from './describe';
66

7-
const { project, branch } = await setupTestResources('cli-it-');
7+
const { project, branch } = await setupTestResources('cli-it');
88

99
describe('branch describe command tests', () => {
1010
test('describe branch with json output', async () => {

src/commands/branch/get.integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { getNthArgOfNthCall, getTestContext, TEST_XATA_ORG } from '~/lib/test-ut
44
import { implementation } from './get';
55
import stripAnsi from 'strip-ansi';
66

7-
const { project, branch } = await setupTestResources('cli-it-');
7+
const { project, branch } = await setupTestResources('cli-it');
88

99
describe('branch get command tests', () => {
1010
test('get non-existent field', async () => {

src/commands/branch/list.integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import stripAnsi from 'strip-ansi';
44
import { getNthArgOfNthCall, getTestContext, TEST_XATA_ORG } from '~/lib/test-utils';
55
import { implementation } from './list';
66

7-
const { project, branch } = await setupTestResources('cli-it-');
7+
const { project, branch } = await setupTestResources('cli-it');
88

99
describe('branch list command tests', () => {
1010
test('list branches with json output', async () => {

src/commands/branch/tree.integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import stripAnsi from 'strip-ansi';
44
import { getNthArgOfNthCall, getTestContext, TEST_XATA_ORG } from '~/lib/test-utils';
55
import { implementation } from './tree';
66

7-
const { project, branch } = await setupTestResources('cli-it-');
7+
const { project, branch } = await setupTestResources('cli-it');
88
const { child } = await setupChildBranch({ project, branch });
99

1010
describe('branch tree command tests', () => {

src/commands/branch/url.integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { getNthArgOfNthCall, getTestContext, TEST_XATA_ORG } from '~/lib/test-ut
44
import type { Types } from '@xata.io/api';
55
import { implementation, validateBranchStatusForUrl } from './url';
66

7-
const { project, branch } = await setupTestResources('cli-it-');
7+
const { project, branch } = await setupTestResources('cli-it');
88

99
describe('branch url command tests', () => {
1010
test('url returns connection string for healthy branch', async () => {

src/commands/project/describe.integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import stripAnsi from 'strip-ansi';
44
import { getNthArgOfNthCall, getTestContext, TEST_XATA_ORG } from '~/lib/test-utils';
55
import { implementation } from './describe';
66

7-
const { project } = await setupTestResources('cli-it-');
7+
const { project } = await setupTestResources('cli-it');
88

99
describe('project describe command tests', () => {
1010
test('describe 404 project call', async () => {

src/commands/project/get.integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { setupTestResources } from '@xata.io/test-utils';
33
import { getNthArgOfNthCall, getTestContext, TEST_XATA_ORG } from '~/lib/test-utils';
44
import { implementation } from './get';
55

6-
const { project } = await setupTestResources('cli-it-');
6+
const { project } = await setupTestResources('cli-it');
77

88
describe('project get command tests', () => {
99
test('project get a non-existent field', async () => {

src/commands/project/list.integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { setupTestResources } from '@xata.io/test-utils';
33
import { getNthArgOfNthCall, getTestContext, TEST_XATA_ORG } from '~/lib/test-utils';
44
import { implementation } from './list';
55

6-
const { project } = await setupTestResources('cli-it-');
6+
const { project } = await setupTestResources('cli-it');
77

88
describe('project list command with tests', () => {
99
test('list projects with json output', async () => {

0 commit comments

Comments
 (0)