Skip to content

Commit 01efea9

Browse files
author
AutoSponge
committed
fix: use tempfile for user profile test
1 parent b475d2f commit 01efea9

File tree

12 files changed

+14
-2
lines changed

12 files changed

+14
-2
lines changed

lib/scriptwriter.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const Scriptwriter = require('./scriptwriter');
33
const ansiEscapes = require('ansi-escapes');
44
const importGlobal = require('import-global');
55
const kleur = require('kleur');
6+
const tempfile = require('tempfile');
67

78
test('Scriptwriter is a constructor', (t) => {
89
t.plan(1);
@@ -138,7 +139,7 @@ test.serial('completer ', async (t) => {
138139
});
139140

140141
test.serial('can launch a persistant context', async (t) => {
141-
const scriptwriter = new Scriptwriter({ userDataDir: 'not/empty' });
142+
const scriptwriter = new Scriptwriter({ userDataDir: tempfile() });
142143
let allReady = waitFor(scriptwriter, 'ready', ['client']);
143144
await scriptwriter.init();
144145
await allReady;
-24 Bytes
Binary file not shown.
-48 Bytes
Binary file not shown.
-24 Bytes
Binary file not shown.
-48 Bytes
Binary file not shown.

not/empty/Default/GPUCache/data_0

-8 KB
Binary file not shown.

not/empty/Default/GPUCache/data_1

-264 KB
Binary file not shown.

not/empty/Default/GPUCache/data_2

-8 KB
Binary file not shown.

not/empty/Default/GPUCache/data_3

-8 KB
Binary file not shown.

not/empty/Default/GPUCache/index

-256 KB
Binary file not shown.

0 commit comments

Comments
 (0)