Skip to content

Commit 5fabf88

Browse files
committed
workaround?
1 parent dd6234a commit 5fabf88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

datastore/functions/test/index.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ import {join} from 'path';
2020
import {v4} from 'uuid';
2121
import {stub} from 'sinon';
2222
import fetch from 'node-fetch';
23+
import { fileURLToPath } from 'url';
24+
import { dirname } from 'path';
2325
import waitPort from 'wait-port';
2426
import {Datastore} from '@google-cloud/datastore';
2527

2628
const datastore = new Datastore();
2729
import {set, get, del} from '../';
2830

2931
const FF_TIMEOUT = 3000;
32+
const __filename = fileURLToPath(import.meta.url);
33+
const __dirname = dirname(__filename);
3034
const cwd = join(__dirname, '..');
3135
const NAME = 'sampletask1';
3236
const KIND = `Task-${v4()}`;

0 commit comments

Comments
 (0)