@bazel/jasmine
Advanced tools
Comparing version 3.5.1 to 3.6.0
@@ -64,3 +64,3 @@ const fs = require('fs'); | ||
function main(args) { | ||
async function main(args) { | ||
if (args.length < 2) { | ||
@@ -137,3 +137,3 @@ throw new Error('expected argument missing'); | ||
const originalExecute = env.execute.bind(env); | ||
env.execute = () => { | ||
env.execute = async () => { | ||
const allSpecs = getAllSpecs(env); | ||
@@ -149,3 +149,3 @@ // Partition the specs among the shards. | ||
env.configure({specFilter: (s) => enabledSpecs.includes(s.id)}); | ||
originalExecute(); | ||
await originalExecute(); | ||
}; | ||
@@ -160,3 +160,4 @@ // Special case! | ||
jrunner.execute(); | ||
await jrunner.execute(); | ||
return 0; | ||
@@ -183,3 +184,10 @@ } | ||
if (require.main === module) { | ||
process.exitCode = main(process.argv.slice(2)); | ||
(async () => { | ||
try { | ||
process.exitCode = await main(process.argv.slice(2)); | ||
} catch (error) { | ||
console.error('[jasmine_runner.js] An error has been reported:', error); | ||
process.exitCode = 1; | ||
} | ||
})(); | ||
} |
@@ -5,3 +5,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "3.5.1", | ||
"version": "3.6.0", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type" : "git", |
@@ -102,3 +102,3 @@ | ||
Defaults to `"//:node_modules/@bazel/jasmine/jasmine_runner.js"` | ||
Defaults to `Label("//:node_modules/@bazel/jasmine/jasmine_runner.js")` | ||
@@ -105,0 +105,0 @@ <h4 id="jasmine_node_test-kwargs">kwargs</h4> |
Sorry, the diff of this file is not supported yet
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
30173
199