@@ -11,7 +11,7 @@ process.chdir(__dirname);
1111const main = ( arguments_ , options ) => execa ( path . join ( __dirname , '../cli.js' ) , arguments_ , options ) ;
1212
1313test ( 'fix option' , async t => {
14- const cwd = await fs . promises . mkdtemp ( path . join ( __dirname , '.. /temp/' ) ) ;
14+ const cwd = await fs . promises . mkdtemp ( path . join ( __dirname , './temp/' ) ) ;
1515 const filepath = path . join ( cwd , 'x.js' ) ;
1616 await fs . promises . writeFile ( filepath , 'console.log()\n' ) ;
1717 await main ( [ '--fix' , filepath ] , { cwd} ) ;
@@ -34,7 +34,7 @@ test('stdin-filename option with stdin', async t => {
3434} ) ;
3535
3636test ( 'reporter option' , async t => {
37- const cwd = await fs . promises . mkdtemp ( path . join ( __dirname , '.. /temp/' ) ) ;
37+ const cwd = await fs . promises . mkdtemp ( path . join ( __dirname , './temp/' ) ) ;
3838 const filepath = path . join ( cwd , 'x.js' ) ;
3939 await fs . promises . writeFile ( filepath , 'console.log()\n' ) ;
4040
@@ -101,7 +101,7 @@ test('supports being extended with a shareable config', async t => {
101101} ) ;
102102
103103test ( 'quiet option' , async t => {
104- const cwd = await fs . promises . mkdtemp ( path . join ( __dirname , '.. /temp/' ) ) ;
104+ const cwd = await fs . promises . mkdtemp ( path . join ( __dirname , './temp/' ) ) ;
105105 const filepath = path . join ( cwd , 'x.js' ) ;
106106 await fs . promises . writeFile ( filepath , '// TODO: quiet\nconsole.log()\n' ) ;
107107 const error = await t . throwsAsync ( main ( [ '--quiet' , '--reporter=json' , filepath ] , { cwd} ) ) ;
@@ -110,7 +110,7 @@ test('quiet option', async t => {
110110} ) ;
111111
112112test ( 'invalid node-engine option' , async t => {
113- const cwd = await fs . promises . mkdtemp ( path . join ( __dirname , '.. /temp/' ) ) ;
113+ const cwd = await fs . promises . mkdtemp ( path . join ( __dirname , './temp/' ) ) ;
114114 const filepath = path . join ( cwd , 'x.js' ) ;
115115 await fs . promises . writeFile ( filepath , 'console.log()\n' ) ;
116116 const error = await t . throwsAsync ( main ( [ '--node-version' , 'v' , filepath ] , { cwd} ) ) ;
0 commit comments