|
|
@ -1,4 +1,5 @@ |
|
|
|
const fs = require('fs') |
|
|
|
const fs = require('fs') |
|
|
|
|
|
|
|
const path = require('path') |
|
|
|
const async = require('async') |
|
|
|
const async = require('async') |
|
|
|
const promisify = require('pify') |
|
|
|
const promisify = require('pify') |
|
|
|
|
|
|
|
|
|
|
@ -58,7 +59,7 @@ async function startContainer (fileRegEx, testGenerator) { |
|
|
|
const testFilePath = sPath.replace('.', '-').replace('.', '.test.') |
|
|
|
const testFilePath = sPath.replace('.', '-').replace('.', '.test.') |
|
|
|
|
|
|
|
|
|
|
|
await promisify(fs.readFile)( |
|
|
|
await promisify(fs.readFile)( |
|
|
|
__dirname + '/' + sFile, |
|
|
|
path.join(__dirname, sFile), |
|
|
|
'utf8', |
|
|
|
'utf8', |
|
|
|
async (err, result) => { |
|
|
|
async (err, result) => { |
|
|
|
if (err) { |
|
|
|
if (err) { |
|
|
|