Skip to content

Commit

Permalink
moar
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Aug 29, 2024
1 parent 0cbedd1 commit bcc15c1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/unit/simctl-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ import path from 'node:path';
import { fileURLToPath } from 'url';

const proxyquire = pq.noCallThru();
const FILENAME = fileURLToPath(import.meta.url);
const FILENAME = getFilename();
const DIRNAME = path.dirname(FILENAME);

function getFilename() {
try {
return fileURLToPath(import.meta.url);
} catch (e) {
return __filename;
}
}

const devicePayloads = [
[
{
Expand Down

0 comments on commit bcc15c1

Please sign in to comment.