diff --git a/testsuite/src/constants.js b/testsuite/src/constants.js index ed7778d84..0623df1bd 100644 --- a/testsuite/src/constants.js +++ b/testsuite/src/constants.js @@ -1 +1,5 @@ -export const tmpJsonFile = '/tmp/test.json'; +import * as os from 'os'; + +export const tmpJsonFile = os.tmpdir() + '/test.json'; +export const ESC = '\u001B'; + diff --git a/testsuite/src/texReporter.js b/testsuite/src/texReporter.js index 1f037fb44..1fb0c0c83 100644 --- a/testsuite/src/texReporter.js +++ b/testsuite/src/texReporter.js @@ -2,11 +2,9 @@ * Custom reporter for tex macro coverage. */ -import {tmpJsonFile} from './constants.js'; +import { tmpJsonFile, ESC } from './constants.js'; import * as fs from 'fs'; -const ESC = '\u001B'; - export default class TexReporter { constructor(globalConfig, reporterOptions, reporterContext) {