Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkav committed Feb 13, 2024
1 parent 840b69b commit 8a41f36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/insomnia/src/main.development.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ app.on('ready', async () => {

// Init the rest
await updates.init();
await fs.mkdir(path.join(dataPath, 'responses'));
// recursive = ignore already exists error
await fs.mkdir(path.join(dataPath, 'responses'), { recursive: true });
});

// Set as default protocol
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia/src/main/network/libcurl-promise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const curlRequest = (options: CurlRequestOptions) => new Promise<CurlRequ
try {
const responsesDir = path.join(getDataDirectory(), 'responses');
// TODO: remove this check, its only used for network.test.ts
await fs.promises.mkdir(responsesDir);
await fs.promises.mkdir(responsesDir, { recursive: true });
const responseBodyPath = path.join(responsesDir, uuidv4() + '.response');

const { requestId, req, finalUrl, settings, certificates, caCertficatePath, socketPath, authHeader } = options;
Expand Down

0 comments on commit 8a41f36

Please sign in to comment.