Breaking change: support for -npm reporter handling in parallel mode
* The `boot` function exported by the core module returns the same object every time it's called. * Removed node_boot.js. Use the exported `boot` function instead * JasmineStartedInfo does not have totalSpecsDefined or order in parallel mode * JasmineDoneInfo does not have order in parallel mode * Added incompleteCode and numWorkers to JasmineDoneInfo
This commit is contained in:
@@ -2908,6 +2908,7 @@ describe('Env integration', function() {
|
||||
const e = reporter.jasmineDone.calls.argsFor(0)[0];
|
||||
expect(e.overallStatus).toEqual('incomplete');
|
||||
expect(e.incompleteReason).toEqual('No specs found');
|
||||
expect(e.incompleteCode).toEqual('noSpecsFound');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2926,6 +2927,7 @@ describe('Env integration', function() {
|
||||
const e = reporter.jasmineDone.calls.argsFor(0)[0];
|
||||
expect(e.overallStatus).toEqual('incomplete');
|
||||
expect(e.incompleteReason).toEqual('fit() or fdescribe() was found');
|
||||
expect(e.incompleteCode).toEqual('focused');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2946,6 +2948,7 @@ describe('Env integration', function() {
|
||||
const e = reporter.jasmineDone.calls.argsFor(0)[0];
|
||||
expect(e.overallStatus).toEqual('incomplete');
|
||||
expect(e.incompleteReason).toEqual('fit() or fdescribe() was found');
|
||||
expect(e.incompleteCode).toEqual('focused');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2966,6 +2969,7 @@ describe('Env integration', function() {
|
||||
const e = reporter.jasmineDone.calls.argsFor(0)[0];
|
||||
expect(e.overallStatus).toEqual('failed');
|
||||
expect(e.incompleteReason).toBeUndefined();
|
||||
expect(e.incompleteCode).toBeUndefined();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -78,15 +78,10 @@ describe('npm package', function() {
|
||||
|
||||
it('has bootFiles', function() {
|
||||
expect(this.packagedCore.files.bootFiles).toEqual(['boot0.js', 'boot1.js']);
|
||||
expect(this.packagedCore.files.nodeBootFiles).toEqual(['node_boot.js']);
|
||||
|
||||
for (const fileName of this.packagedCore.files.bootFiles) {
|
||||
expect(fileName).toExistInPath(this.packagedCore.files.bootDir);
|
||||
}
|
||||
|
||||
for (const fileName of this.packagedCore.files.nodeBootFiles) {
|
||||
expect(fileName).toExistInPath(this.packagedCore.files.bootDir);
|
||||
}
|
||||
});
|
||||
|
||||
it('has an imagesDir', function() {
|
||||
|
||||
Reference in New Issue
Block a user