Skip to content

Commit c95e851

Browse files
authored
test: add more snapshots to replace individual assert(fs.existsSync(...)) (#359)
1 parent dfd30c5 commit c95e851

File tree

8 files changed

+1192
-32
lines changed

8 files changed

+1192
-32
lines changed

.mocharc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
'watch-files': ['test/**/*.js', 'lib/**/*.js'],
33
recursive: true,
4-
file: './mocha.setup.js', // setup file before everything else loads
4+
file: './test/mocha.setup.js', // setup file before everything else loads
55
'forbid-only': process.env.CI ?? false, // make sure no `test.only` is merged into `main`
6+
reporter: 'spec',
67
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
},
2929
"scripts": {
3030
"build": "tsc",
31-
"mocha": "xvfb-maybe electron-mocha --reporter spec && mocha --reporter spec",
32-
"mocha:update": "UPDATE_SNAPSHOT=true yarn mocha",
31+
"mocha": "xvfb-maybe electron-mocha && mocha",
32+
"mocha:update": "mocha --update",
3333
"mocha:watch": "mocha --watch",
3434
"test": "yarn lint && yarn mocha",
3535
"lint": "yarn prettier:check",

0 commit comments

Comments
 (0)