Skip to content

Commit cc4d60e

Browse files
committed
generalise report tmp file
1 parent d73a2a1 commit cc4d60e

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

testsuite/src/constants.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
export const tmpJsonFile = '/tmp/test.json';
1+
import * as os from 'os';
2+
3+
export const tmpJsonFile = os.tmpdir() + '/test.json';
4+
export const ESC = '\u001B';
5+

testsuite/src/texReporter.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
* Custom reporter for tex macro coverage.
33
*/
44

5-
import {tmpJsonFile} from './constants.js';
5+
import { tmpJsonFile, ESC } from './constants.js';
66
import * as fs from 'fs';
77

8-
const ESC = '\u001B';
9-
108
export default class TexReporter {
119

1210
constructor(globalConfig, reporterOptions, reporterContext) {

0 commit comments

Comments
 (0)