add jest options

This commit is contained in:
Karsten Hassel
2021-06-11 22:14:57 +02:00
parent 99e5edf2c5
commit 044935a164
4 changed files with 5 additions and 21 deletions

View File

@@ -13,14 +13,8 @@ beforeAll(function () {
module: {},
__dirname: path.dirname(filePath),
global: {},
console: {
log: function () {
/*console.log("console.log(", arguments, ")");*/
}
},
process: {
on: function () {
/*console.log("process.on called with: ", arguments);*/
},
env: {}
}

View File

@@ -13,14 +13,8 @@ beforeAll(function () {
module: {},
__dirname: path.dirname(filePath),
global: {},
console: {
log: function () {
/*console.log("console.log(", arguments, ")");*/
}
},
process: {
on: function () {
/*console.log("process.on called with: ", arguments);*/
},
env: {}
}
@@ -35,10 +29,6 @@ beforeAll(function () {
vm.runInNewContext(code, sandbox, fileName);
});
afterAll(function () {
//console.log(global);
});
describe("'global.root_path' set in js/app.js", function () {
const expectedSubPaths = ["modules", "serveronly", "js", "js/app.js", "js/main.js", "js/electron.js", "config"];