Skip to content

Commit a5e1eb7

Browse files
committed
Use makeTempDir
1 parent 7e5d094 commit a5e1eb7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

__tests__/commands/dev-env-sync-sql.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
GENERATE_LIVE_BACKUP_DOWNLOAD_URL_MUTATION,
1717
START_LIVE_COPY_MUTATION,
1818
} from '../../src/lib/live-backup-copy';
19+
import { makeTempDir } from '../../src/lib/utils';
1920

2021
jest.mock( '@automattic/vip-search-replace', () => {
2122
// eslint-disable-next-line @typescript-eslint/no-var-requires
@@ -98,7 +99,9 @@ describe( 'commands/DevEnvSyncSQLCommand', () => {
9899
} );
99100

100101
describe( 'liveBackupCopy', () => {
101-
const configFile = '/tmp/test-live-backup-config.json';
102+
const tmpDir = makeTempDir();
103+
104+
const configFile = `${ tmpDir }/test-live-backup-config.json`;
102105
const mockConfig = {
103106
tool: 'mysqldump',
104107
type: 'tables',

0 commit comments

Comments
 (0)