Skip to content
Permalink
Browse files

Bump dependencies

* Upgrade source-map-support and impacted tests

* Update dev dependencies

* Update regular dependencies
  • Loading branch information...
novemberborn committed Nov 3, 2019
1 parent f69425b commit a69e63578b9cd2b0b74d656a666bbad260a88680
@@ -32,6 +32,15 @@ function resolveModules(modules) {
});
}

function getFilePathPrefix(files) {
if (files.length === 1) {
// Get the correct prefix up to the basename.
return commonPathPrefix([files[0], path.dirname(files[0])]);
}

return commonPathPrefix(files);
}

class Api extends Emittery {
constructor(options) {
super();
@@ -156,7 +165,7 @@ class Api extends Emittery {
await this.emit('run', {
clearLogOnNextRun: runtimeOptions.clearLogOnNextRun === true,
failFastEnabled: failFast,
filePathPrefix: commonPathPrefix(files),
filePathPrefix: getFilePathPrefix(files),
files,
matching: apiOptions.match.length > 0,
previousFailures: runtimeOptions.previousFailures || 0,
@@ -37,7 +37,7 @@ const legacy = (enhancementsOnly, babelIsEnabled, babelOnly) => {
return {all: [...seen], enhancementsOnly, babelOnly};
};

const noBabelOutOfTheBox = (extensions = [], babelOnly) => {
const noBabelOutOfTheBox = (extensions = [], babelOnly = []) => {
// Combine all extensions possible for testing. Remove duplicate extensions.
const duplicates = [];
const seen = new Set();
@@ -86,7 +86,7 @@ class Watcher {
this.runVector = 0;
this.previousFiles = [];
this.globs = {cwd: resolveTestsFrom, ...globs};
this.run = (specificFiles = files, updateSnapshots) => {
this.run = (specificFiles = files, updateSnapshots = false) => {
const clearLogOnNextRun = this.clearLogOnNextRun && this.runVector > 0;
if (this.runVector > 0) {
this.clearLogOnNextRun = true;
@@ -6,7 +6,7 @@ const assertHasColorsArguments = count => {
tty.WriteStream.prototype.hasColors(count);
};

const makeHasColors = colorDepth => (count = 16, env) => {
const makeHasColors = colorDepth => (count = 16, env = undefined) => {
// `count` is optional too, so make sure it's not an env object.
if (env === undefined && typeof count === 'object' && count !== null) {
count = 16;

0 comments on commit a69e635

Please sign in to comment.
You can’t perform that action at this time.