We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd6234a commit 5fabf88Copy full SHA for 5fabf88
datastore/functions/test/index.test.js
@@ -20,13 +20,17 @@ import {join} from 'path';
20
import {v4} from 'uuid';
21
import {stub} from 'sinon';
22
import fetch from 'node-fetch';
23
+import { fileURLToPath } from 'url';
24
+import { dirname } from 'path';
25
import waitPort from 'wait-port';
26
import {Datastore} from '@google-cloud/datastore';
27
28
const datastore = new Datastore();
29
import {set, get, del} from '../';
30
31
const FF_TIMEOUT = 3000;
32
+const __filename = fileURLToPath(import.meta.url);
33
+const __dirname = dirname(__filename);
34
const cwd = join(__dirname, '..');
35
const NAME = 'sampletask1';
36
const KIND = `Task-${v4()}`;
0 commit comments