Skip to content

Commit

Permalink
add snapshot for tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jul 12, 2024
1 parent 73e01fb commit dbaab32
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/mcr.config.tsx.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const checkSnapshot = require('./check-snapshot.js');
module.exports = {

// logging: 'debug',
Expand All @@ -12,6 +13,10 @@ module.exports = {

entryFilter: {
'**/test/specs/**': true
},

onEnd: function(coverageResults) {
checkSnapshot(coverageResults);
}

};
21 changes: 21 additions & 0 deletions test/snapshot/tsx.snapshot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "v8",
"summary": {
"bytes": "57.93 %",
"statements": "66.67 %",
"branches": "100.00 %",
"functions": "66.67 %",
"lines": "57.14 %"
},
"files": {
"test/specs/tsx.test.ts": {
"functions": "66.67 %",
"branches": "100.00 %",
"statements": "66.67 %",
"lines": "57.14 %",
"bytes": "57.93 %",
"uncoveredLines": "5-7",
"extras": "4b,8b,9b"
}
}
}

0 comments on commit dbaab32

Please sign in to comment.