Skip to content

Commit 7b9a5c6

Browse files
committed
chore: remove importing files with extensions in the tests
1 parent c495fec commit 7b9a5c6

152 files changed

Lines changed: 569 additions & 569 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

test/helpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { CreateHttpClientParams } from 'contentful-sdk-core'
2-
import { createClient } from '../lib/index.js'
2+
import { createClient } from '../lib/index'
33
import type {
44
BulkActionPayload,
55
BulkActionProps,
@@ -8,8 +8,8 @@ import type {
88
Organization,
99
PlainClientAPI,
1010
Space,
11-
} from '../lib/index.js'
12-
import { TestDefaults } from './defaults.js'
11+
} from '../lib/index'
12+
import { TestDefaults } from './defaults'
1313
import * as testUtils from '@contentful/integration-test-utils'
1414
import { AsyncActionProcessingOptions, pollAsyncActionStatus } from '../lib/methods/action'
1515

test/integration/ai-action-integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
createTestSpace,
55
generateRandomId,
66
timeoutToCalmRateLimiting,
7-
} from '../helpers.js'
7+
} from '../helpers'
88

99
describe('AiAction api', { sequential: true }, () => {
1010
let space

test/integration/ai-action-invocation-integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
createTestSpace,
55
generateRandomId,
66
timeoutToCalmRateLimiting,
7-
} from '../helpers.js'
7+
} from '../helpers'
88

99
export async function pollForCompletedAiActionInvocationResult(
1010
environment,

test/integration/api-key-integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
createTestSpace,
55
generateRandomId,
66
timeoutToCalmRateLimiting,
7-
} from '../helpers.js'
7+
} from '../helpers'
88

99
describe('ApiKey api', { sequential: true }, () => {
1010
let space

test/integration/app-access-token-integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
createAppInstallation,
66
getTestOrganization,
77
timeoutToCalmRateLimiting,
8-
} from '../helpers.js'
8+
} from '../helpers'
99
import { sign } from 'jsonwebtoken'
1010
import type {
1111
AppDefinition,
@@ -14,7 +14,7 @@ import type {
1414
Environment,
1515
PlainClientAPI,
1616
AppKeyProps,
17-
} from '../../lib/index.js'
17+
} from '../../lib/index'
1818

1919
describe('AppAccessToken api', { sequential: true }, () => {
2020
let organization: Organization

test/integration/app-action-integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { expect, describe, test, beforeAll, afterAll } from 'vitest'
2-
import type { AppActionProps, PlainClientAPI } from '../../lib/index.js'
2+
import type { AppActionProps, PlainClientAPI } from '../../lib/index'
33
import {
44
initPlainClient,
55
getTestOrganization,
66
getDefaultSpace,
77
createAppInstallation,
88
timeoutToCalmRateLimiting,
9-
} from '../helpers.js'
9+
} from '../helpers'
1010
import { afterEach } from 'node:test'
1111

1212
describe('AppAction api', function () {

test/integration/app-bundle-integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect, describe, test, beforeAll, afterAll } from 'vitest'
22
import { readFileSync } from 'fs'
3-
import { getTestOrganization, getDefaultSpace, timeoutToCalmRateLimiting } from '../helpers.js'
4-
import type { Organization, AppDefinition, AppUpload, Space, Environment } from '../../lib/index.js'
3+
import { getTestOrganization, getDefaultSpace, timeoutToCalmRateLimiting } from '../helpers'
4+
import type { Organization, AppDefinition, AppUpload, Space, Environment } from '../../lib/index'
55

66
describe('AppBundle api', { sequential: true }, () => {
77
let organization: Organization

test/integration/app-definition-integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
createAppInstallation,
77
getDefaultSpace,
88
timeoutToCalmRateLimiting,
9-
} from '../helpers.js'
10-
import type { Organization, Space, Environment, AppInstallation } from '../../lib/index.js'
9+
} from '../helpers'
10+
import type { Organization, Space, Environment, AppInstallation } from '../../lib/index'
1111

1212
describe('AppDefinition api', { sequential: true }, () => {
1313
let organization: Organization

test/integration/app-details-integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, describe, test, beforeAll, afterAll } from 'vitest'
2-
import { initPlainClient, getTestOrganization, timeoutToCalmRateLimiting } from '../helpers.js'
3-
import type { AppIcon, PlainClientAPI, Organization, AppDefinition } from '../../lib/index.js'
2+
import { initPlainClient, getTestOrganization, timeoutToCalmRateLimiting } from '../helpers'
3+
import type { AppIcon, PlainClientAPI, Organization, AppDefinition } from '../../lib/index'
44

55
describe('AppDetails api', { sequential: true }, () => {
66
let appDefinition: AppDefinition

test/integration/app-event-subscription-integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, describe, test, beforeAll, afterAll } from 'vitest'
2-
import { initPlainClient, getTestOrganization, timeoutToCalmRateLimiting } from '../helpers.js'
3-
import type { PlainClientAPI, Organization, AppDefinition } from '../../lib/index.js'
2+
import { initPlainClient, getTestOrganization, timeoutToCalmRateLimiting } from '../helpers'
3+
import type { PlainClientAPI, Organization, AppDefinition } from '../../lib/index'
44

55
describe('AppEventSubscription api', { sequential: true }, () => {
66
let appDefinition: AppDefinition

0 commit comments

Comments
 (0)