diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..897af4a --- /dev/null +++ b/.npmignore @@ -0,0 +1,3 @@ +.nyc_output/ +node_modules/ +test/ diff --git a/package.json b/package.json index 3ff40b2..dfaee7a 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "mocha-froth", + "name": "mocha-foam", "version": "0.1.0", "main": "out/src/index.js", "author": "ssube ", diff --git a/src/index.ts b/src/index.ts index 43907a2..7197113 100644 --- a/src/index.ts +++ b/src/index.ts @@ -113,7 +113,8 @@ export function formatPrefix(details: RunDetails<[T]>): string { } /** - * Guess whether the run threw an error. + * Guess whether the run threw an error. Looks for strings starting with `Error` or a typed error + * like `AssertionError`. * * @private */