Skip to content

Commit

Permalink
test: use process.env instead of import.meta
Browse files Browse the repository at this point in the history
KK-1040
  • Loading branch information
nikomakela committed Oct 25, 2023
1 parent 1019a5e commit 4936ab0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/domain/headlessCms/__tests__/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ const page = fakePage();

beforeEach(() => {
const link =
import.meta.env.VITE_CMS_URI ??
'https://kukkuu.hkih.stage.geniem.io/graphql';
process.env.VITE_CMS_URI || 'https://kukkuu.hkih.stage.geniem.io/graphql';
const headlessCms = graphql.link(link);
server.use(
headlessCms.query('page', (req, res, ctx) => {
Expand Down

0 comments on commit 4936ab0

Please sign in to comment.