diff --git a/tests/index.test.js b/tests/index.test.js index 9266d171..c5b90a82 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -2,7 +2,7 @@ import { expect, test, describe } from 'vitest' import StoryblokClient, { RichtextResolver } from '../' -const accessToken = import.meta.env.VITE_ACCESS_TOKEN +const accessToken = process.env.VITE_ACCESS_TOKEN let Storyblok = new StoryblokClient({ accessToken, diff --git a/tests/interceptor.test.js b/tests/interceptor.test.js index 0e1f85d9..31efab25 100644 --- a/tests/interceptor.test.js +++ b/tests/interceptor.test.js @@ -2,7 +2,7 @@ import { expect, test, describe } from 'vitest' import StoryblokClient from '../' -const accessToken = import.meta.env.VITE_ACCESS_TOKEN +const accessToken = process.env.VITE_ACCESS_TOKEN const cache = { type: 'memory', diff --git a/tests/redirect.test.js b/tests/redirect.test.js index b535b565..56999b70 100644 --- a/tests/redirect.test.js +++ b/tests/redirect.test.js @@ -2,7 +2,7 @@ import { expect, test, describe } from 'vitest' import StoryblokClient from '../' -const accessToken = import.meta.env.VITE_ACCESS_TOKEN +const accessToken = process.env.VITE_ACCESS_TOKEN let Storyblok = new StoryblokClient({ accessToken, diff --git a/tests/resolveLinks.test.js b/tests/resolveLinks.test.js index 22e45142..4fccc9ff 100644 --- a/tests/resolveLinks.test.js +++ b/tests/resolveLinks.test.js @@ -2,7 +2,7 @@ import { expect, test, describe } from 'vitest' import StoryblokClient from '../' -const accessToken = import.meta.env.VITE_ACCESS_TOKEN +const accessToken = process.env.VITE_ACCESS_TOKEN let Storyblok = new StoryblokClient({ accessToken, diff --git a/tests/resolveRelations.test.js b/tests/resolveRelations.test.js index 537d00dc..40534b06 100644 --- a/tests/resolveRelations.test.js +++ b/tests/resolveRelations.test.js @@ -2,7 +2,7 @@ import { expect, test, describe } from 'vitest' import StoryblokClient from '../' -const accessToken = import.meta.env.VITE_ACCESS_TOKEN +const accessToken = process.env.VITE_ACCESS_TOKEN let Storyblok = new StoryblokClient({ accessToken,