Skip to content

Commit

Permalink
test: structured clone coverage ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Feb 17, 2023
1 parent 7a6f865 commit 370b9bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"format": "prettier --write .",
"preinstall": "npx only-allow pnpm",
"lint": "eslint . --ext .ts",
"test": "jest --coverage",
"test": "jest --verbose --coverage",
"version": "auto-changelog -p && cp CHANGELOG.md docs/src/others/changelog.md && git add CHANGELOG.md docs/src/others/changelog.md"
},
"resolutions": {
Expand Down
2 changes: 1 addition & 1 deletion src/storage/memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export function buildMemoryStorage(cloneData = false) {
find: (key) => {
const value = storage.data[key];

if (cloneData && value !== undefined) {
/* istanbul ignore if 'only available on super recent browsers' */
if (cloneData && value !== undefined) {
if (typeof structuredClone === 'function') {
return structuredClone(value);
}
Expand Down

0 comments on commit 370b9bd

Please sign in to comment.