1 | ;
|
2 |
|
3 | var fs = require('fs')
|
4 | , path = require('path');
|
5 |
|
6 |
|
7 | module.exports = (function() {
|
8 |
|
9 | var testConfig = {
|
10 | tmpDir: path.join(__dirname , '/tmp')
|
11 | };
|
12 |
|
13 | // perform simple tasks before returning the object (all sync so we can
|
14 | // ensure it happens before returning this object)
|
15 |
|
16 | if (!fs.existsSync(testConfig.tmpDir)) {
|
17 | fs.mkdirSync(testConfig.tmpDir);
|
18 | }
|
19 |
|
20 | return testConfig;
|
21 |
|
22 | })();
|