Skip to content

Commit

Permalink
update old coverage ignore lines to work with vitest v8
Browse files Browse the repository at this point in the history
  • Loading branch information
cgdibble committed Jan 22, 2024
1 parent 321921a commit fa5970b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"format:check": "prettier --check .",
"test": "npm run format:check && npm run lint && npm run flow-typed && npm run flow && npm run test:unit",
"webpack": "babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/webpack --progress",
"test:unit:watch": "vitest",
"test:unit:watch": "vitest --coverage",
"test:unit": "vitest run --coverage",
"prepublishOnly": "npm run babel",
"postpublish": "rm -rf ./server && git checkout ./server",
Expand Down
10 changes: 5 additions & 5 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,29 +330,29 @@ export function getSDKToken(): ?string {
return getSDKAttribute(SDK_SETTINGS.SDK_TOKEN);
}

// whether in zoid window
/* v8 ignore next 3 */
export function isChildWindow(): boolean {
return Boolean(window.xprops);
}

// istanbul ignore next
/* v8 ignore next 3 */
export function getUserAccessToken(): ?string {
// pass
}

// istanbul ignore next
/* v8 ignore next 3 */
export function getUserAuthCode(): ?string {
// pass
}

// Remove
// istanbul ignore next
/* v8 ignore next 3 */
export function getCountry(): $Values<typeof COUNTRY> {
return getLocale().country;
}

// Remove
// istanbul ignore next
/* v8 ignore next 3 */
export function getLang(): $Values<typeof LANG> {
return getLocale().lang;
}

0 comments on commit fa5970b

Please sign in to comment.