Skip to content

Commit ade765b

Browse files
committed
Move temporary directory
1 parent f4d860e commit ade765b

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,13 @@
117117
},
118118
"eslintIgnore": [
119119
"test/fixtures",
120-
"coverage",
121-
"temp"
120+
"test/temp",
121+
"coverage"
122122
],
123123
"ava": {
124+
"files": [
125+
"!test/temp"
126+
],
124127
"timeout": "1m"
125128
},
126129
"nyc": {

test/cli.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ process.chdir(__dirname);
1111
const main = (arguments_, options) => execa(path.join(__dirname, '../cli.js'), arguments_, options);
1212

1313
test('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

3636
test('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

103103
test('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

112112
test('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}));
File renamed without changes.

0 commit comments

Comments
 (0)