@shopify/cli-kit
Version:
A set of utilities, interfaces, and models that are common across all the platform features
14 lines • 449 B
JavaScript
import { inTemporaryDirectory } from '../fs.js';
import { test } from 'vitest';
/**
* Vitest fixture providing the test with a temporary directory to work in.
*/
export const testWithTempDir = test.extend({
// eslint-disable-next-line no-empty-pattern
tempDir: async ({}, use) => {
await inTemporaryDirectory(async (tempDir) => {
await use(tempDir);
});
},
});
//# sourceMappingURL=test-with-temp-dir.js.map