From dd98a45003743a25cff0ee0815e90b5c90297ff7 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Sun, 18 Sep 2022 19:59:21 -0700 Subject: [PATCH] Use lcoal core when running our own tests in parallel --- Gruntfile.js | 5 +---- lib/jasmine-core.js | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 4017344e..6af4a7cb 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -56,11 +56,8 @@ module.exports = function(grunt) { console.log('parallel runner pid:', process.pid); const done = this.async(); - // TODO use this core instead of the one imported by jasmine/parallel - // const jasmineCore = require('./lib/jasmine-core.js'); const runner = new ParallelRunner({ - // TODO: - // jasmineCore, + jasmineCore: require('./lib/jasmine-core.js'), numWorkers: require('os').cpus().length }); diff --git a/lib/jasmine-core.js b/lib/jasmine-core.js index 873d446d..51ea0d89 100644 --- a/lib/jasmine-core.js +++ b/lib/jasmine-core.js @@ -75,6 +75,7 @@ fs.readdirSync(rootPath).forEach(function(file) { }); module.exports.files = { + self: __filename, path: rootPath, bootDir: rootPath, bootFiles: bootFiles,