@@ -7,7 +7,6 @@ const avaTest = require('ava')
7
7
const { isCI } = require ( 'ci-info' )
8
8
const FormData = require ( 'form-data' )
9
9
const getPort = require ( 'get-port' )
10
- const tempy = require ( 'tempy' )
11
10
12
11
const { withDevServer } = require ( './utils/dev-server.cjs' )
13
12
const got = require ( './utils/got.cjs' )
@@ -395,7 +394,9 @@ test('Runs build plugins with the `onPreDev` event', async (t) => {
395
394
},
396
395
};
397
396
`
398
- const pluginDirectory = await tempy . directory ( )
397
+
398
+ const { temporaryDirectory } = await import ( 'tempy' )
399
+ const pluginDirectory = await temporaryDirectory ( )
399
400
400
401
await fs . writeFile ( path . join ( pluginDirectory , 'manifest.yml' ) , pluginManifest )
401
402
await fs . writeFile ( path . join ( pluginDirectory , 'index.js' ) , pluginSource )
@@ -440,7 +441,9 @@ test('Handles errors from the `onPreDev` event', async (t) => {
440
441
},
441
442
};
442
443
`
443
- const pluginDirectory = await tempy . directory ( )
444
+
445
+ const { temporaryDirectory } = await import ( 'tempy' )
446
+ const pluginDirectory = await temporaryDirectory ( )
444
447
445
448
await fs . writeFile ( path . join ( pluginDirectory , 'manifest.yml' ) , pluginManifest )
446
449
await fs . writeFile ( path . join ( pluginDirectory , 'index.js' ) , pluginSource )
0 commit comments