import * as contentful from 'contentful-management'

if (!process.env.CONTENTFUL_CMA_TOKEN) {
  require('dotenv').config()
}

export const client = contentful.createClient({
  accessToken: process.env.CONTENTFUL_CMA_TOKEN
})

export const getCurrentSpace = () => client.getSpace(process.env.CONTENTFUL_SPACE_ID)

import * as contentful from 'contentful-management'

if (!process.env.CONTENTFUL_CMA_TOKEN) {
  require('dotenv').config()
}

export const client = contentful.createClient({
  accessToken: process.env.CONTENTFUL_CMA_TOKEN as string
})

export const getCurrentSpace = () => client.getSpace(process.env.CONTENTFUL_SPACE_ID as string)

Fix linting errors in integration tests
Fix linting errors in integration tests