From fa5970bff8a2abd8e03ad7174968ba1d638ba020 Mon Sep 17 00:00:00 2001 From: cdibble Date: Mon, 22 Jan 2024 11:13:32 -0800 Subject: [PATCH] update old coverage ignore lines to work with vitest v8 --- package.json | 2 +- src/script.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index c501e10e..01f53e0a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/script.js b/src/script.js index 3b3c6ac9..ef7bee03 100644 --- a/src/script.js +++ b/src/script.js @@ -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 { return getLocale().country; } // Remove -// istanbul ignore next +/* v8 ignore next 3 */ export function getLang(): $Values { return getLocale().lang; }