@bazel/jasmine
Advanced tools
Comparing version 0.27.4 to 0.27.5
@@ -5,3 +5,3 @@ { | ||
"license": "Apache 2.0", | ||
"version": "0.27.4", | ||
"version": "0.27.5", | ||
"repository": { | ||
@@ -20,3 +20,3 @@ "type" : "git", | ||
"npm_bazel_jasmine": { | ||
"version": "0.27.4", | ||
"version": "0.27.5", | ||
"rootPath": "." | ||
@@ -23,0 +23,0 @@ } |
@@ -96,13 +96,2 @@ const fs = require('fs'); | ||
// Re-do logic from jrunner.execute() here so that | ||
// we can control which specs are executed below | ||
jrunner.loadRequires(); | ||
jrunner.loadHelpers(); | ||
if (!jrunner.defaultReporterConfigured) { | ||
jrunner.configureDefaultReporter({showColors: jrunner.showingColors}); | ||
} | ||
jrunner.loadSpecs(); | ||
jrunner.addReporter(jrunner.completionReporter); | ||
const allSpecs = getAllSpecs(jasmine.getEnv()); | ||
if (TOTAL_SHARDS) { | ||
@@ -114,9 +103,10 @@ // Partition the specs among the shards. | ||
// shards. | ||
const allSpecs = getAllSpecs(jasmine.getEnv()); | ||
const start = allSpecs.length * SHARD_INDEX / TOTAL_SHARDS; | ||
const end = allSpecs.length * (SHARD_INDEX + 1) / TOTAL_SHARDS; | ||
jasmine.getEnv().execute(allSpecs.slice(start, end)); | ||
} else { | ||
jasmine.getEnv().execute(allSpecs); | ||
const enabledSpecs = allSpecs.slice(start, end); | ||
jasmine.getEnv().configure({specFilter: (s) => enabledSpecs.includes(s.id)}); | ||
} | ||
jrunner.execute(); | ||
return 0; | ||
@@ -123,0 +113,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24853
117