Skip to content

Commit

Permalink
chore: see the output as diff when a test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Mar 27, 2023
1 parent 509adc0 commit 41a7dc7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"@types/backbone": "1.4.14",
"@types/lodash": "^4.14.134",
"backbone": "1.4.0",
"diff": "^5.1.0",
"jquery": "^3.1.1",
"lodash": "^4.17.4"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/base/test/karma-cov.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ module.exports = function (config) {
{ type: 'html', dir: 'test/coverage' },
],
},
mochaReporter: {
showDiff: true
},
port: 9876,
colors: true,
singleRun: true,
Expand Down
3 changes: 3 additions & 0 deletions packages/base/test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ module.exports = function (config) {
basePath: '..',
frameworks: ['mocha'],
reporters: ['mocha'],
mochaReporter: {
showDiff: true
},
files: ['test/build/bundle.js'],
port: 9876,
colors: true,
Expand Down
12 changes: 11 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4311,6 +4311,11 @@ [email protected], diff@^5.0.0:
resolved "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b"
integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==

diff@^5.1.0:
version "5.1.0"
resolved "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz#bc52d298c5ea8df9194800224445ed43ffc87e40"
integrity sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==

dir-glob@^3.0.1:
version "3.0.1"
resolved "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f"
Expand Down Expand Up @@ -10603,11 +10608,16 @@ typedoc@~0.23.24:
minimatch "^5.1.2"
shiki "^0.12.1"

"typescript@^3 || ^4", typescript@~4.1.3, typescript@~4.9.4:
"typescript@^3 || ^4", typescript@~4.9.4:
version "4.9.4"
resolved "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78"
integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==

typescript@~4.1.3:
version "4.1.6"
resolved "https://registry.npmjs.org/typescript/-/typescript-4.1.6.tgz#1becd85d77567c3c741172339e93ce2e69932138"
integrity sha512-pxnwLxeb/Z5SP80JDRzVjh58KsM6jZHRAOtTpS7sXLS4ogXNKC9ANxHHZqLLeVHZN35jCtI4JdmLLbLiC1kBow==

typestyle@^2.0.4:
version "2.4.0"
resolved "https://registry.npmjs.org/typestyle/-/typestyle-2.4.0.tgz#df5bae6ff15093f5ce51f0caac5ef79428f64e78"
Expand Down

0 comments on commit 41a7dc7

Please sign in to comment.