Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion testsuite/src/constants.js
Original file line number Diff line number Diff line change
@@ -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';

4 changes: 1 addition & 3 deletions testsuite/src/texReporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down