Skip to content
/ jest Public
forked from jestjs/jest

Commit

Permalink
realpath tmpdir
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 12, 2020
1 parent 6d9e3d4 commit 62bfb8a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion e2e/__tests__/existentRoots.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@

import * as path from 'path';
import {tmpdir} from 'os';
import {sync as realpath} from 'realpath-native';
import {cleanup, writeFiles} from '../Utils';
import runJest from '../runJest';

const DIR = path.resolve(tmpdir(), 'existent-roots');
let DIR = path.resolve(tmpdir(), 'existent-roots');

try {
DIR = realpath(DIR);
} catch {}

beforeEach(() => cleanup(DIR));
afterAll(() => cleanup(DIR));
Expand Down

0 comments on commit 62bfb8a

Please sign in to comment.